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

Updates mux_2024 specs handling

Showing with 4 additions and 4 deletions
+4 -4
...@@ -14,11 +14,11 @@ activation_delay = 0.01 ...@@ -14,11 +14,11 @@ activation_delay = 0.01
release_delay = 0.005 release_delay = 0.005
MUX_CONFIG = HARDWARE_CONFIG['mux'].pop('default', {}) MUX_CONFIG = HARDWARE_CONFIG['mux'].pop('default', {})
MUX_CONFIG.update({'voltage_max': max(0,min(MUX_CONFIG['voltage_max'],voltage_max)), MUX_CONFIG.update({'voltage_max': max(0.,min(MUX_CONFIG['voltage_max'],voltage_max)),
'current_max': max(0,min(MUX_CONFIG['current_max'],voltage_max))}) 'current_max': max(0.,min(MUX_CONFIG['current_max'],voltage_max))})
MUX_CONFIG.update({'activation_delay': max(MUX_CONFIG['activation_delay'],activation_delay), MUX_CONFIG.update({'activation_delay': max(MUX_CONFIG.pop('activation_delay', activation_delay),activation_delay),
'release_delay': max(MUX_CONFIG['release_delay'],release_delay)}) 'release_delay': max(MUX_CONFIG.pop('release_delay', release_delay),release_delay)})
# defaults to 4 roles cabling electrodes from 1 to 8 # defaults to 4 roles cabling electrodes from 1 to 8
default_mux_cabling = {(elec, role) : ('mux_1', elec) for role in ['A', 'B', 'M', 'N'] for elec in range(1,9)} default_mux_cabling = {(elec, role) : ('mux_1', elec) for role in ['A', 'B', 'M', 'N'] for elec in range(1,9)}
......
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