Commit 69a1b719 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Updates hardware_sytem to handle MUX_CONFIG

Showing with 1 addition and 1 deletion
+1 -1
...@@ -103,7 +103,7 @@ class OhmPiHardware: ...@@ -103,7 +103,7 @@ class OhmPiHardware:
mux_config.update({'exec_logger': self.exec_logger, 'data_logger': self.data_logger, mux_config.update({'exec_logger': self.exec_logger, 'data_logger': self.data_logger,
'soh_logger': self.soh_logger}) 'soh_logger': self.soh_logger})
mux_config.update(**MUX_CONFIG[mux_id]) 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"]}') mux_module = importlib.import_module(f'ohmpi.hardware_components.{mux_config["model"]}')
if isinstance(mux_config['ctl'], dict): ### TODO: is this needed? if isinstance(mux_config['ctl'], dict): ### TODO: is this needed?
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment