From ff4aa61b1ec780b4b804ede62bf81728f7f18e96 Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 28 Aug 2024 10:52:12 +0800 Subject: [PATCH] fixup! Clear Graph UI changes --- pytec/pytec/gui/view/live_plot_view.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pytec/pytec/gui/view/live_plot_view.py b/pytec/pytec/gui/view/live_plot_view.py index e7ec852..f651f43 100644 --- a/pytec/pytec/gui/view/live_plot_view.py +++ b/pytec/pytec/gui/view/live_plot_view.py @@ -17,7 +17,9 @@ class LiveDataPlotter(QObject): self._thermostat.report_update.connect(self.update_report) self._thermostat.pid_update.connect(self.update_pid) - self._thermostat.connection_state_changed.connect() + self._thermostat.connection_state_changed.connect( + self.thermostat_state_change_handler + ) self.NUM_CHANNELS = len(live_plots) self.graphs = [] @@ -28,7 +30,7 @@ class LiveDataPlotter(QObject): self.graphs.append(_TecGraphs(live_plot[0], live_plot[1])) @pyqtSlot(ThermostatConnectionState) - def conn(self, state): + def thermostat_state_change_handler(self, state): if state == ThermostatConnectionState.DISCONNECTED: self.clear_graphs()