From 54a07fe7dd65d05a14051fa49c2044bd4501e131 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Fri, 20 Oct 2023 09:26:48 +0200
Subject: [PATCH] Adds vmin strategy

---
 ohmpi/hardware_system.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ohmpi/hardware_system.py b/ohmpi/hardware_system.py
index 938134e2..f30fe690 100644
--- a/ohmpi/hardware_system.py
+++ b/ohmpi/hardware_system.py
@@ -351,9 +351,10 @@ class OhmPiHardware:
             print(f'Vab {vab } bounded by P max')
         elif new_vab == cond_iab_max:
             print(f'Vab {vab} bounded by Iab max')
-        else:
-            assert new_vab == cond_vmn_max
+        elif new_vab == cond_vmn_max:
             print(f'Vab {vab} bounded by Vmn max')
+        else:
+            print(f'Vab {vab} bounded by Vmn min')
 
         return new_vab
 
-- 
GitLab