Commit 7792dc7a authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Updates switch_mux

Showing with 1 addition and 1 deletion
+1 -1
......@@ -823,7 +823,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}')
return False
else:
if quadrupole == [0, 0, 0, 0]: # NOTE: No mux
if np.array(quadrupole).all() == np.array([0, 0, 0, 0]).all(): # NOTE: No mux
return True
else:
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