File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
element_array_ephys/readers Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def load_probe_data(self):
110
110
assert continuous_info ['sample_rate' ] == analog_signal .sample_rate == 2500
111
111
continuous_type = 'lfp'
112
112
else :
113
- match = re .search ('\.?-? (AP|LFP)$' , continuous_info ['folder_name' ].strip ('/' ))
113
+ match = re .search ('- (AP|LFP)$' , continuous_info ['folder_name' ].strip ('/' ))
114
114
continuous_type = match .groups ()[0 ].lower ()
115
115
116
116
if continuous_type == 'ap' :
@@ -143,7 +143,11 @@ def load_probe_data(self):
143
143
class Probe :
144
144
145
145
def __init__ (self , processor , probe_index = 0 ):
146
- self .processor_id = int (processor ['@NodeId' ])
146
+ processor_node_id = processor .get ("@nodeId" , processor .get ("@NodeId" ))
147
+ if processor_node_id is None :
148
+ raise KeyError ('Neither "@nodeId" nor "@NodeId" key found' )
149
+
150
+ self .processor_id = int (processor_node_id )
147
151
148
152
if processor ['@pluginName' ] == 'Neuropix-3a' or 'NP_PROBE' not in processor ['EDITOR' ]:
149
153
self .probe_info = processor ['EDITOR' ]['PROBE' ] if isinstance (processor ['EDITOR' ]['PROBE' ], dict ) else processor ['EDITOR' ]['PROBE' ][probe_index ]
You can’t perform that action at this time.
0 commit comments