From 1926e4cc0a7e9cfe95d82a70f887093bb0534e89 Mon Sep 17 00:00:00 2001 From: su530201 <olivier.kaufmann@umons.ac.be> Date: Sun, 30 Apr 2023 22:53:13 +0200 Subject: [PATCH] Improves ohmpi switch_mux_on or off --- ohmpi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ohmpi.py b/ohmpi.py index e0215dfb..a259899b 100644 --- a/ohmpi.py +++ b/ohmpi.py @@ -1122,7 +1122,7 @@ class OhmPi(object): quadrupole : list of 4 int List of 4 integers representing the electrode numbers. """ - + assert len(quadrupole) == 4 self._hw.switch_mux(electrodes=quadrupole, state='on') def switch_mux_off(self, quadrupole, cmd_id=None): @@ -1135,7 +1135,7 @@ class OhmPi(object): quadrupole : list of 4 int List of 4 integers representing the electrode numbers. """ - + assert len(quadrupole) == 4 self._hw.switch_mux(electrodes=quadrupole, state='off') def test_mux(self, activation_time=1.0, mux_id=None, cmd_id=None): # TODO: add this in the MUX code -- GitLab