forked from IPKM/nmreval
remove spurious print
This commit is contained in:
parent
8e2ebfc765
commit
48861c3f80
@ -44,7 +44,6 @@ AppDir:
|
|||||||
- python3.9-minimal
|
- python3.9-minimal
|
||||||
- python3-numpy
|
- python3-numpy
|
||||||
- python3-scipy
|
- python3-scipy
|
||||||
- gnuplot-nox
|
|
||||||
- python3-bsddb3
|
- python3-bsddb3
|
||||||
- python3-h5py
|
- python3-h5py
|
||||||
- python3-pyqt5
|
- python3-pyqt5
|
||||||
|
@ -11,6 +11,7 @@ import numpy as np
|
|||||||
from numpy import errstate, floor, log10
|
from numpy import errstate, floor, log10
|
||||||
from pyqtgraph import GraphicsObject, getConfigOption, mkColor
|
from pyqtgraph import GraphicsObject, getConfigOption, mkColor
|
||||||
|
|
||||||
|
from nmreval.lib.logger import logger
|
||||||
from nmreval.utils.text import convert
|
from nmreval.utils.text import convert
|
||||||
from ..io.filedialog import FileDialog
|
from ..io.filedialog import FileDialog
|
||||||
|
|
||||||
@ -497,7 +498,6 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow):
|
|||||||
self.ymax_lineedit.setText('%.5g' % r[1][1])
|
self.ymax_lineedit.setText('%.5g' % r[1][1])
|
||||||
|
|
||||||
def _update_zorder(self):
|
def _update_zorder(self):
|
||||||
print('update yorder')
|
|
||||||
for i, sid in enumerate(self.sets):
|
for i, sid in enumerate(self.sets):
|
||||||
plt = self.real_plots[sid]
|
plt = self.real_plots[sid]
|
||||||
if plt.zValue() != 2*i+1:
|
if plt.zValue() != 2*i+1:
|
||||||
@ -518,7 +518,6 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow):
|
|||||||
if self._block:
|
if self._block:
|
||||||
return
|
return
|
||||||
|
|
||||||
print('update legend')
|
|
||||||
self.listWidget.blockSignals(True)
|
self.listWidget.blockSignals(True)
|
||||||
|
|
||||||
for i in range(self.listWidget.count()):
|
for i in range(self.listWidget.count()):
|
||||||
@ -530,7 +529,6 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow):
|
|||||||
self.show_legend()
|
self.show_legend()
|
||||||
|
|
||||||
def show_legend(self):
|
def show_legend(self):
|
||||||
print('show legend')
|
|
||||||
if not self.legend.isVisible():
|
if not self.legend.isVisible():
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -634,7 +632,7 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow):
|
|||||||
try:
|
try:
|
||||||
item_dic = plot_item.get_data_opts()
|
item_dic = plot_item.get_data_opts()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f'{item} could not exported because {e.args}')
|
logger.exception(f'{item} could not exported because {e.args}')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if len(item) == 2:
|
if len(item) == 2:
|
||||||
@ -648,7 +646,7 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow):
|
|||||||
try:
|
try:
|
||||||
dic['items'].append(item.get_data_opts())
|
dic['items'].append(item.get_data_opts())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f'{item} could not be exported because {e.args}')
|
logger.exception(f'{item} could not be exported because {e.args}')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
in_legend.append(False)
|
in_legend.append(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user