From 0833813909adf8400157607f1e6505f1979cea69 Mon Sep 17 00:00:00 2001 From: atse Date: Mon, 9 Sep 2024 15:10:16 +0800 Subject: [PATCH] ch_tuning -> autotuning_channels --- pytec/tec_qt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 207ab56..a65a666 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -167,22 +167,22 @@ class MainWindow(QtWidgets.QMainWindow): @pyqtSlot(int, PIDAutotuneState) def _on_pid_autotune_state_changed(self, _ch, _state): - ch_tuning = [] + autotuning_channels = [] for ch in range(self.NUM_CHANNELS): if self._autotuners.get_state(ch) in { PIDAutotuneState.STATE_READY, PIDAutotuneState.STATE_RELAY_STEP_UP, PIDAutotuneState.STATE_RELAY_STEP_DOWN, }: - ch_tuning.append(ch) + autotuning_channels.append(ch) - if len(ch_tuning) == 0: + if len(autotuning_channels) == 0: self.background_task_lbl.setText("Ready.") self.loading_spinner.hide() self.loading_spinner.stop() else: self.background_task_lbl.setText( - "Autotuning channel {ch}...".format(ch=ch_tuning) + f"Autotuning channel {autotuning_channels}..." ) self.loading_spinner.start() self.loading_spinner.show()