From a62d594ac3f5643a059f9b87d205f298cbafd57b Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Sat, 15 Apr 2023 20:18:57 +0200 Subject: [PATCH] Attemps to use the sampling_rate in _vab_pulse --- hardware/ohmpi_card_3_15.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hardware/ohmpi_card_3_15.py b/hardware/ohmpi_card_3_15.py index e5175c1b..ee623c59 100644 --- a/hardware/ohmpi_card_3_15.py +++ b/hardware/ohmpi_card_3_15.py @@ -9,7 +9,8 @@ import time import numpy as np import os from OhmPi.hardware import TxAbstract, RxAbstract -controller_module = importlib.import_module(f'OhmPi.hardware.raspberry_pi_3') +controller_name = HARDWARE_CONFIG['controller'].pop('board_name', 'raspberry_pi') +controller_module = importlib.import_module(f'OhmPi.hardware.{controller_name}') TX_CONFIG = HARDWARE_CONFIG['tx'] RX_CONFIG = HARDWARE_CONFIG['rx'] -- GitLab