Commit f546add0 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Fixes test_mux

Showing with 3 additions and 3 deletions
+3 -3
...@@ -75,7 +75,7 @@ if part_of_hardware_system: ...@@ -75,7 +75,7 @@ if part_of_hardware_system:
# time.sleep(1.) # time.sleep(1.)
# k.switch_mux(electrodes=[1, 4, 2, 3], roles=['A', 'B', 'M', 'N'], state='off') # k.switch_mux(electrodes=[1, 4, 2, 3], roles=['A', 'B', 'M', 'N'], state='off')
# k.mux_boards[mux_id].test(activation_time=.4) # k.mux_boards[mux_id].test(activation_time=.4)
# k.test_mux_one_relay((1, 'A')) # k.test_mux()
if within_ohmpi: if within_ohmpi:
......
...@@ -519,7 +519,7 @@ class OhmPiHardware: ...@@ -519,7 +519,7 @@ class OhmPiHardware:
self.exec_logger.event(f'OhmPiHardware\tswitch_mux\tend\t{datetime.datetime.utcnow()}') self.exec_logger.event(f'OhmPiHardware\tswitch_mux\tend\t{datetime.datetime.utcnow()}')
return status return status
def test_mux_one_relay(self, channel=None, activation_time=1.0): #TODO: is this needed at OhmpiHardware level? def test_mux(self, channel=None, activation_time=1.0): #TODO: is this needed at OhmpiHardware level?
"""Interactive method to test the multiplexer. """Interactive method to test the multiplexer.
Parameters Parameters
......
...@@ -825,7 +825,7 @@ class OhmPi(object): ...@@ -825,7 +825,7 @@ class OhmPi(object):
""" """
self.reset_mux() # All mux boards should be reset even if we only want to test one otherwise we might create a shortcut self.reset_mux() # All mux boards should be reset even if we only want to test one otherwise we might create a shortcut
if mux_id is None: if mux_id is None:
self._hw.test_mux_one_relay(activation_time=activation_time) self._hw.test_mux(activation_time=activation_time)
else: else:
self._hw.mux_boards[mux_id].test(activation_time=activation_time) self._hw.mux_boards[mux_id].test(activation_time=activation_time)
......
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