From 7fcab6e44e8b5e32bc3a959c820872a3fe85280a Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Thu, 19 Oct 2023 22:26:27 +0200
Subject: [PATCH] Updates current_max in config

---
 configs/config_mb_2024_0_2__4_mux_2024_dps5005.py | 2 +-
 ohmpi/hardware_system.py                          | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/configs/config_mb_2024_0_2__4_mux_2024_dps5005.py b/configs/config_mb_2024_0_2__4_mux_2024_dps5005.py
index d36472af..07b11fd5 100644
--- a/configs/config_mb_2024_0_2__4_mux_2024_dps5005.py
+++ b/configs/config_mb_2024_0_2__4_mux_2024_dps5005.py
@@ -21,7 +21,7 @@ HARDWARE_CONFIG = {
     'pwr': {'model': 'pwr_dps5005', 'voltage': 3., 'interface_name': 'modbus'},
     'tx':  {'model': 'mb_2024_0_2',
              'voltage_max': 50.,  # Maximum voltage supported by the TX board [V]
-             'current_max': 4.8/(50*r_shunt)/5,  # Maximum voltage read by the current ADC on the TX board [A]
+             'current_max': 4.8/(50*r_shunt),  # Maximum voltage read by the current ADC on the TX board [A]
              'r_shunt': r_shunt,  # Shunt resistance in Ohms
              'interface_name': 'i2c',
              'vmn_hardware_offset': 2501.
diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py
index cb7dd11c..823a5629 100644
--- a/ohmpi/hardware_system.py
+++ b/ohmpi/hardware_system.py
@@ -49,8 +49,6 @@ voltage_max = np.min([TX_CONFIG['voltage_max'],
                       np.min(np.hstack((np.inf, [MUX_CONFIG[i].pop('voltage_max', np.inf) for i in MUX_CONFIG.keys()])))])
 voltage_min = RX_CONFIG['voltage_min']
 
-print(f'Current max: {current_max:.2f}')
-
 
 def elapsed_seconds(start_time):
     lap = datetime.datetime.utcnow() - start_time
-- 
GitLab