From 8d5be50f7c65d9199e08346d9224d73a988e54ec Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Thu, 19 Oct 2023 23:49:17 +0200 Subject: [PATCH] Adds constant strategy --- ohmpi/hardware_system.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py index 4b97919f..b23e3120 100644 --- a/ohmpi/hardware_system.py +++ b/ohmpi/hardware_system.py @@ -436,6 +436,7 @@ class OhmPiHardware: diff_vab = np.inf if strategy == 'constant': tx_volt = vab_max*.9 + strategy = 'vmax' if strategy == 'vmax': while (k < n_steps) and (diff_vab > diff_vab_lim) and (vab_list[k] < vab_max): vabs = [] -- GitLab