Commit 1926e4cc authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Improves ohmpi switch_mux_on or off

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
...@@ -1122,7 +1122,7 @@ class OhmPi(object): ...@@ -1122,7 +1122,7 @@ class OhmPi(object):
quadrupole : list of 4 int quadrupole : list of 4 int
List of 4 integers representing the electrode numbers. List of 4 integers representing the electrode numbers.
""" """
assert len(quadrupole) == 4
self._hw.switch_mux(electrodes=quadrupole, state='on') self._hw.switch_mux(electrodes=quadrupole, state='on')
def switch_mux_off(self, quadrupole, cmd_id=None): def switch_mux_off(self, quadrupole, cmd_id=None):
...@@ -1135,7 +1135,7 @@ class OhmPi(object): ...@@ -1135,7 +1135,7 @@ class OhmPi(object):
quadrupole : list of 4 int quadrupole : list of 4 int
List of 4 integers representing the electrode numbers. List of 4 integers representing the electrode numbers.
""" """
assert len(quadrupole) == 4
self._hw.switch_mux(electrodes=quadrupole, state='off') 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 def test_mux(self, activation_time=1.0, mux_id=None, cmd_id=None): # TODO: add this in the MUX code
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment