Commit 09074b53 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes rs-check adding a bypass option to switching

Showing with 1 addition and 1 deletion
+1 -1
...@@ -767,7 +767,7 @@ class OhmPi(object): ...@@ -767,7 +767,7 @@ class OhmPi(object):
Bypasses checks for A==M or A==M or B==M or B==N (i.e. used for rs-check) Bypasses checks for A==M or A==M or B==M or B==N (i.e. used for rs-check)
""" """
assert len(quadrupole) == 4 assert len(quadrupole) == 4
if self._hw.tx.pwr.voltage > self._hw.rx._max_voltage and bypass_check: if self._hw.tx.pwr.voltage > self._hw.rx._voltage_max and bypass_check:
self.exec_logger.warning('Cannot bypass checking electrode roles because tx voltage is over rx maximum voltage') self.exec_logger.warning('Cannot bypass checking electrode roles because tx voltage is over rx maximum voltage')
return False return False
else: else:
......
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