diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index 2189c010b72b5d853b408ba3a35d71da8627019a..cc0e31a039768a14e8470c287ddf6828b4ea8330 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -103,7 +103,7 @@ class OhmPiHardware: mux_config.update({'exec_logger': self.exec_logger, 'data_logger': self.data_logger, 'soh_logger': self.soh_logger}) mux_config.update(**MUX_CONFIG[mux_id]) - mux_config.update(mux_config.pop('ctl', self.ctl)) + mux_config.update({'ctl': mux_config.pop('ctl', self.ctl)}) mux_module = importlib.import_module(f'ohmpi.hardware_components.{mux_config["model"]}') if isinstance(mux_config['ctl'], dict): ### TODO: is this needed?