Commit e22c7fd8 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes bug related to MUX_CONFIG in hardware_system

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -281,7 +281,7 @@ class OhmPiHardware:
for i in range(len(electrodes)):
elec_dict[roles[i]].append(electrodes[i])
mux_workers = []
for mux in self.mux_boards:
for _, mux in self.mux_boards.items():
# start a new thread to perform some work
mux_workers.append(Thread(target=mux.switch, kwargs={'elec_dict': elec_dict}))
for mux_worker in mux_workers:
......
......@@ -19,7 +19,7 @@ time.sleep(8)
#mux.switch({'A': [1], 'B': [4], 'M': [2], 'N': [3]}, state='off')
mux.reset()
mux.test({'A': [9, 10, 11, 12, 13, 14, 15, 16], 'B': [9, 10, 11, 12, 13, 14, 15, 16],
'M': [9, 10, 11, 12, 13, 14, 15, 16], 'N': [9, 10, 11, 12, 13, 14, 15, 16]}, activation_time=.25)
'M': [9, 10, 11, 12, 13, 14, 15, 16], 'N': [9, 10, 11, 12, 13, 14, 15, 16]}, activation_time=.1)
# mux as part of a OhmPiHardware system
from OhmPi.hardware_system import OhmPiHardware
......
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