From c35ab48f2f22f865115316f1a5ef0152608d704f Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Tue, 3 Oct 2023 19:34:20 +0200 Subject: [PATCH] Removes reference to tx_module.TX_CONFIG and rx_module.RX_CONFIG --- ohmpi/hardware_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index 7537aa9c..31b3e998 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -37,7 +37,7 @@ for k, v in tx_module.SPECS['tx'].items(): RX_CONFIG = HARDWARE_CONFIG['rx'] -current_max = np.min([TX_CONFIG['current_max'], np.min([MUX_CONFIG[i].pop('current_max', np.inf) for i in MUX_CONFIG.keys()])]) +current_max = np.min([TX_CONFIG['voltage_max']/50/TX_CONFIG['r_shunt'], np.min([MUX_CONFIG[i].pop('current_max', np.inf) for i in MUX_CONFIG.keys()])]) voltage_max = np.min([TX_CONFIG['voltage_max'], np.min([MUX_CONFIG[i].pop('voltage_max', np.inf) for i in MUX_CONFIG.keys()])]) voltage_min = RX_CONFIG['voltage_min'] -- GitLab