remove spurious print

This commit is contained in:
Dominik Demuth 2023-04-16 14:20:40 +02:00
parent 8e2ebfc765
commit 48861c3f80
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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)