File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
element_array_ephys/readers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -94,14 +94,14 @@ def load_probe_data(self):
94
94
95
95
if (processor ['@pluginName' ] == 'Neuropix-3a'
96
96
or 'NP_PROBE' not in processor ['EDITOR' ]):
97
- if isinstance (processor ['EDITOR' ]['PROBE' ], dict ):
98
- probe_indices = (0 ,)
99
- else :
100
- probe_indices = range (len (processor ['EDITOR' ]['PROBE' ]))
97
+ editor_probe_key = 'PROBE'
101
98
elif processor ['@pluginName' ] == 'Neuropix-PXI' :
102
- probe_indices = range ( len ( processor [ 'EDITOR' ][ ' NP_PROBE']))
99
+ editor_probe_key = ' NP_PROBE'
103
100
else :
104
101
raise NotImplementedError
102
+
103
+ probe_indices = (0 ,) if isinstance (processor ['EDITOR' ][editor_probe_key ], dict ) else range (len (processor ['EDITOR' ][editor_probe_key ]))
104
+
105
105
else : # not a processor for Neuropixels probe
106
106
continue
107
107
You can’t perform that action at this time.
0 commit comments