From 3ca8b725cd5885d6cfa21d4254ce13a365213049 Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 14 Aug 2024 12:58:58 +0800 Subject: [PATCH] send_command: Remove unnecessary redirection The child at inner_param's childpath to the root parameter... is just inner_param itself. --- 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 db81e1c..2e60e1d 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -279,9 +279,9 @@ class MainWindow(QtWidgets.QMainWindow): set_param_args = (*thermostat_param[:2], "off") else: set_param_args = (*thermostat_param, new_value) - param.child(*param.childPath(inner_param)).setOpts(lock=True) + inner_param.setOpts(lock=True) await self.client.set_param(*set_param_args) - param.child(*param.childPath(inner_param)).setOpts(lock=False) + inner_param.setOpts(lock=False) if "pid_autotune" in inner_param.opts: auto_tuner_param = inner_param.opts["pid_autotune"][0]