Commit 13f150f9 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Updates run_sequence

Showing with 2 additions and 2 deletions
+2 -2
...@@ -456,7 +456,7 @@ class OhmPi(object): ...@@ -456,7 +456,7 @@ class OhmPi(object):
# check arguments # check arguments
if quad is None: if quad is None:
quad = [0, 0, 0, 0] quad = np.array([0, 0, 0, 0])
if nb_stack is None: if nb_stack is None:
nb_stack = self.settings['nb_stack'] nb_stack = self.settings['nb_stack']
if injection_duration is None: if injection_duration is None:
...@@ -810,7 +810,7 @@ class OhmPi(object): ...@@ -810,7 +810,7 @@ class OhmPi(object):
self.exec_logger.debug(f'tx pwr voltage: {self._hw.tx.pwr.voltage}, rx max voltage: {self._hw.rx._voltage_max}') self.exec_logger.debug(f'tx pwr voltage: {self._hw.tx.pwr.voltage}, rx max voltage: {self._hw.rx._voltage_max}')
return False return False
else: else:
if quadrupole == [0, 0, 0, 0]: # NOTE: No mux if np.array(quadrupole) == np.array([0, 0, 0, 0]): # NOTE: No mux
return True return True
else: else:
return self._hw.switch_mux(electrodes=quadrupole, state='on', bypass_check=bypass_check) return self._hw.switch_mux(electrodes=quadrupole, state='on', bypass_check=bypass_check)
......
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