From e562d0e9c291cd11b71fe4356cef3e054e88abc6 Mon Sep 17 00:00:00 2001 From: awatlet <arnaud.watlet@umons.ac.be> Date: Tue, 26 Sep 2023 14:08:42 +0200 Subject: [PATCH] Updates mux handling in hardware system --- ohmpi/hardware_system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index 2cbfc22e..ac17e4e9 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -104,8 +104,8 @@ class OhmPiHardware: 'soh_logger': self.soh_logger}) mux_config.update(**HARDWARE_CONFIG['mux']['boards'][mux_id]) mux_module = importlib.import_module(f'ohmpi.hardware_components.{mux_config["model"]}') - ctl = mux_config.update(mux_config.pop('ctl', self.ctl)) - if isinstance(ctl, dict): + mux_config.update(mux_config.pop('ctl', self.ctl)) + if isinstance(ctl, dict): ### TODO: is this needed? mux_ctl_module = importlib.import_module(f'ohmpi.hardware_components.{mux_config["ctl"]["model"]}') ctl = mux_ctl_module.Ctl(**self.ctl) assert issubclass(type(mux_config['ctl']), CtlAbstract) -- GitLab