From 626289e784fc9244024191e5778cea36eca9ccf2 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Wed, 18 Oct 2023 23:19:44 +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 0bd38d40..3e73ed06 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -539,7 +539,7 @@ class OhmPiHardware: print('stopped on maximum number of steps reached') k = k + 1 vab_list[k] = np.min(vabs) - vab_opt = vab_list[k-1] + vab_opt = vab_list[k] print(f'Selected Vab: {vab_opt:.2f}') # if strategy == 'vmax': -- GitLab