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

Updates test_mux

Showing with 3 additions and 1 deletion
+3 -1
...@@ -585,7 +585,9 @@ class OhmPiHardware: ...@@ -585,7 +585,9 @@ class OhmPiHardware:
time.sleep(activation_time) time.sleep(activation_time)
self.switch_mux(electrodes, roles, state='off') self.switch_mux(electrodes, roles, state='off')
else: else:
for m_id in [for i in self.mux_boards.keys()].sort(): list_of_muxes = [i for i in self.mux_boards.keys()]
list_of_muxes.sort()
for m_id in list_of_muxes:
for c in self.mux_boards[m_id].cabling.keys(): for c in self.mux_boards[m_id].cabling.keys():
self.exec_logger.info(f'Testing electrode {c[0]} with role {c[1]}.') self.exec_logger.info(f'Testing electrode {c[0]} with role {c[1]}.')
self.switch_mux(electrodes=[c[0]], roles=[c[1]], state='on') self.switch_mux(electrodes=[c[0]], roles=[c[1]], state='on')
......
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