From 2119bc63e788e0e28230d7ff84e02e567283be2c Mon Sep 17 00:00:00 2001 From: awatlet <arnaud.watlet@umons.ac.be> Date: Tue, 26 Sep 2023 14:13:19 +0200 Subject: [PATCH] Updates mux handling in hardware system --- ohmpi/hardware_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index ac17e4e9..bf080d93 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -104,7 +104,7 @@ 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"]}') - mux_config.update(mux_config.pop('ctl', self.ctl)) + mux_config.update({'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) -- GitLab