From e2bb6f4cfa0ea8836c5730d97dca74a42ae310c2 Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 7 Jul 2023 12:41:09 +0800 Subject: [PATCH] Remove unused as clause --- pytec/tec_qt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 022268b..7989421 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -275,7 +275,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): def update_pid(self, pid_settings): for settings in pid_settings: channel = settings["channel"] - with QSignalBlocker(params[channel]) as _: + with QSignalBlocker(params[channel]): params[channel].child("PID Config", "kP").setValue(settings["parameters"]["kp"]) params[channel].child("PID Config", "kI").setValue(settings["parameters"]["ki"]) params[channel].child("PID Config", "kD").setValue(settings["parameters"]["kd"]) @@ -286,7 +286,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): def update_report(self, report_data): for settings in report_data: channel = settings["channel"] - with QSignalBlocker(params[channel]) as _: + with QSignalBlocker(params[channel]): params[channel].child("Temperature PID").setValue(settings["pid_engaged"])