From 48861c3f80dd9c2032ebb5e9781539d0f76de094 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Sun, 16 Apr 2023 14:20:40 +0200 Subject: [PATCH] remove spurious print --- AppImageBuilder.yml | 1 - src/gui_qt/graphs/graphwindow.py | 8 +++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/AppImageBuilder.yml b/AppImageBuilder.yml index 76f0498..8bcd034 100644 --- a/AppImageBuilder.yml +++ b/AppImageBuilder.yml @@ -44,7 +44,6 @@ AppDir: - python3.9-minimal - python3-numpy - python3-scipy - - gnuplot-nox - python3-bsddb3 - python3-h5py - python3-pyqt5 diff --git a/src/gui_qt/graphs/graphwindow.py b/src/gui_qt/graphs/graphwindow.py index 5c182ca..91fea37 100644 --- a/src/gui_qt/graphs/graphwindow.py +++ b/src/gui_qt/graphs/graphwindow.py @@ -11,6 +11,7 @@ import numpy as np from numpy import errstate, floor, log10 from pyqtgraph import GraphicsObject, getConfigOption, mkColor +from nmreval.lib.logger import logger from nmreval.utils.text import convert from ..io.filedialog import FileDialog @@ -497,7 +498,6 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow): self.ymax_lineedit.setText('%.5g' % r[1][1]) def _update_zorder(self): - print('update yorder') for i, sid in enumerate(self.sets): plt = self.real_plots[sid] if plt.zValue() != 2*i+1: @@ -518,7 +518,6 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow): if self._block: return - print('update legend') self.listWidget.blockSignals(True) for i in range(self.listWidget.count()): @@ -530,7 +529,6 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow): self.show_legend() def show_legend(self): - print('show legend') if not self.legend.isVisible(): return @@ -634,7 +632,7 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow): try: item_dic = plot_item.get_data_opts() except Exception as e: - print(f'{item} could not exported because {e.args}') + logger.exception(f'{item} could not exported because {e.args}') continue if len(item) == 2: @@ -648,7 +646,7 @@ class QGraphWindow(QtWidgets.QGraphicsView, Ui_GraphWindow): try: dic['items'].append(item.get_data_opts()) 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 in_legend.append(False)