Commit fac5d2fb authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Improve code consistency

Showing with 4 additions and 4 deletions
+4 -4
......@@ -13,10 +13,10 @@ within_ohmpi = False
# Stand alone
if stand_alone:
ctl_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG['ctl'].pop('model')}')
pwr_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG['pwr'].pop('model')}')
tx_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG['tx'].pop('model')}')
rx_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG['rx'].pop('model')}')
ctl_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG["ctl"].pop("model")}')
pwr_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG["pwr"].pop("model")}')
tx_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG["tx"].pop("model")}')
rx_module = importlib.import_module(f'ohmpi.hardware_components.{HARDWARE_CONFIG["rx"].pop("model")}')
ctl = ctl_module.Ctl()
HARDWARE_CONFIG['tx'].update({'ctl': ctl}) # HARDWARE_CONFIG['tx'].pop('ctl', ctl_module.Ctl())})
......
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