From 97c5f2a20142851ef69295a0d652d7065e8a77c3 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 18 Jul 2024 15:50:02 +0800 Subject: [PATCH] Remove unnessarily duplicated parameter tree Huge source of confusion and easy bugs! --- pytec/pytec/gui/view/ctrl_panel.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pytec/pytec/gui/view/ctrl_panel.py b/pytec/pytec/gui/view/ctrl_panel.py index 99432f0..9ccbb05 100644 --- a/pytec/pytec/gui/view/ctrl_panel.py +++ b/pytec/pytec/gui/view/ctrl_panel.py @@ -65,14 +65,12 @@ class CtrlPanel(QObject): self.trees_ui = trees_ui self.NUM_CHANNELS = len(trees_ui) - self.THERMOSTAT_PARAMETERS = [param_tree for i in range(self.NUM_CHANNELS)] - self.params = [ Parameter.create( name=f"Thermostat Channel {ch} Parameters", type="group", value=ch, - children=self.THERMOSTAT_PARAMETERS[ch], + children=param_tree, ) for ch in range(self.NUM_CHANNELS) ]