From fad90087070ed2ad1d1e966e192a39b12ab7c555 Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 17 Jul 2024 17:14:12 +0800 Subject: [PATCH] Remove unneccessary redirection The child at inner_param's childpath to the root parameter... is just inner_param. --- 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 ea84649..b022e45 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -281,9 +281,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: autotuner_param = inner_param.opts["pid_autotune"][0]