Commit 8122cae4 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes bug in hardware_system dynamic imports

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -9,7 +9,7 @@ import time
import numpy as np
import os
from OhmPi.hardware_components import TxAbstract, RxAbstract
controller_module = importlib.import_module(f'OhmPi.hardware.{HARDWARE_CONFIG["hardware"]["controller"]["model"]}')
controller_module = importlib.import_module(f'OhmPi.hardware_components.{HARDWARE_CONFIG["hardware"]["controller"]["model"]}')
TX_CONFIG = HARDWARE_CONFIG['tx']
RX_CONFIG = HARDWARE_CONFIG['rx']
......
......@@ -10,7 +10,7 @@ import numpy as np
import os
from OhmPi.hardware_components import TxAbstract, RxAbstract
controller_name = HARDWARE_CONFIG['controller'].pop('board_name', 'raspberry_pi')
controller_module = importlib.import_module(f'OhmPi.hardware.{controller_name}')
controller_module = importlib.import_module(f'OhmPi.hardware_components.{controller_name}')
TX_CONFIG = HARDWARE_CONFIG['tx']
RX_CONFIG = HARDWARE_CONFIG['rx']
......
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