From 340579a3713b3399ff8263abece060d93f45734f Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Wed, 18 Oct 2023 23:59:43 +0200
Subject: [PATCH] Fixes bug in _compute_tx_volt

---
 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 c6ad2a89..84fac548 100644
--- a/ohmpi/hardware_system.py
+++ b/ohmpi/hardware_system.py
@@ -511,7 +511,6 @@ class OhmPiHardware:
                 # ax.plot([0, vab_max], [0, vmn_upper_bound * vab_max / vab[k]], '-r', alpha=(k + 1) / n_steps)
                 # ax.plot([0, vab_max], [0, vmn_lower_bound * vab_max / vab[k]], '-g', alpha=(k + 1) / n_steps)
                 # bounds on rab
-                print(f'rab_lb: {vab_list[k] / iab_upper_bound}')
                 rab_lower_bound = np.max([0.1, np.abs(vab_list[k] / iab_upper_bound)])
                 rab_upper_bound = np.max([0.1, np.abs(vab_list[k] / iab_lower_bound)])
                 # bounds on r
@@ -540,6 +539,7 @@ class OhmPiHardware:
                     print('stopped on maximum number of steps reached')
             k = k + 1
             vab_list[k] = np.min(vabs)
+            time.sleep(0.5)
         vab_opt = vab_list[k]
         print(f'Selected Vab: {vab_opt:.2f}')
 
-- 
GitLab