From c51c4110fc25362ae8bfab379ec9f5b836e41fe4 Mon Sep 17 00:00:00 2001
From: su530201 <olivier.kaufmann@umons.ac.be>
Date: Mon, 28 Aug 2023 11:19:17 +0200
Subject: [PATCH] Fixes test_mux_2024_2_roles_AB.py

---
 dev/test_mux_2024_2_roles_AB.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/dev/test_mux_2024_2_roles_AB.py b/dev/test_mux_2024_2_roles_AB.py
index 88b86cf6..b4548b64 100644
--- a/dev/test_mux_2024_2_roles_AB.py
+++ b/dev/test_mux_2024_2_roles_AB.py
@@ -28,20 +28,21 @@ if stand_alone_mux:
     # mux.switch({'A': [1], 'B': [4], 'M': [2], 'N': [3]}, state='off')
     mux.reset()
     mux.test({'A': [i for i in range(1, 17)], 'B': [i for i in range(1, 17)]}, activation_time=.1)
+    mux.reset()
 
 # mux as part of a OhmPiHardware system
 if part_of_hardware_system:
     from ohmpi.hardware_system import OhmPiHardware
     print('Starting test of mux as part of a OhmPiHardware system.')
 
-    k = OhmPiHardware()
-    k.exec_logger.setLevel(logging.DEBUG)
+    h = OhmPiHardware()
+    h.exec_logger.setLevel(logging.DEBUG)
 
     # Test mux switching
-    k.reset_mux()
-    k.switch_mux(electrodes=[1, 4, 2, 3], roles=['A', 'B', 'M', 'N'], state='on')
+    h.reset_mux()
+    h.switch_mux(electrodes=[1, 4], roles=['A', 'B'], state='on')
     time.sleep(1.)
-    k.switch_mux(electrodes=[1, 4, 2, 3], roles=['A', 'B', 'M', 'N'], state='off')
+    h.switch_mux(electrodes=[1, 4], roles=['A', 'B'], state='off')
 
 if within_ohmpi:
     from ohmpi.ohmpi import OhmPi
-- 
GitLab