From d7318ab2801a3e4d8bd2c70f95462d5d17a9cf34 Mon Sep 17 00:00:00 2001 From: awatlet <arnaud.watlet@umons.ac.be> Date: Tue, 26 Sep 2023 14:14:24 +0200 Subject: [PATCH] Updates mux handling in hardware system --- ohmpi/hardware_system.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index bf080d93..547917c7 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -105,9 +105,9 @@ class OhmPiHardware: mux_config.update(**HARDWARE_CONFIG['mux']['boards'][mux_id]) mux_module = importlib.import_module(f'ohmpi.hardware_components.{mux_config["model"]}') 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) + # 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) io = mux_module.pop('io', self.ctl.connections[mux_config.pop('connection', 'i2c')]) mux_config.update({'io': io}) -- GitLab