Commit 7045b848 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Fixes rs_check

Showing with 3 additions and 3 deletions
+3 -3
...@@ -821,8 +821,8 @@ class OhmPi(object): ...@@ -821,8 +821,8 @@ class OhmPi(object):
for i in range(0, quads.shape[0]): for i in range(0, quads.shape[0]):
quad = quads[i, :] # quadrupole quad = quads[i, :] # quadrupole
self._hw.switch_mux(electrodes=list(quads[i, :2]), roles=['A', 'B'], state='on') self._hw.switch_mux(electrodes=list(quads[i, :2]), roles=['A', 'B'], state='on')
if self.tx.pwr.pwr_state == 'off': if self._hw.pwr.pwr_state == 'off':
self.tx.pwr.pwr_state = 'on' self._hw.pwr.pwr_state = 'on'
switch_pwr_off = True switch_pwr_off = True
self._hw._vab_pulse(duration=0.2, vab=tx_volt) self._hw._vab_pulse(duration=0.2, vab=tx_volt)
current = self._hw.readings[-1, 3] current = self._hw.readings[-1, 3]
...@@ -876,7 +876,7 @@ class OhmPi(object): ...@@ -876,7 +876,7 @@ class OhmPi(object):
self.status = 'idle' self.status = 'idle'
if switch_pwr_off: if switch_pwr_off:
self.tx.pwr.pwr_state = 'off' self._hw.pwr.pwr_state = 'off'
# if power was off before measurement, let's turn if off # if power was off before measurement, let's turn if off
if switch_tx_pwr_off: if switch_tx_pwr_off:
self._hw.pwr_state = 'off' self._hw.pwr_state = 'off'
......
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