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):
110110 assert continuous_info ['sample_rate' ] == analog_signal .sample_rate == 2500
111111 continuous_type = 'lfp'
112112 else :
113- match = re .search ('\.?-? (AP|LFP)$' , continuous_info ['folder_name' ].strip ('/' ))
113+ match = re .search ('- (AP|LFP)$' , continuous_info ['folder_name' ].strip ('/' ))
114114 continuous_type = match .groups ()[0 ].lower ()
115115
116116 if continuous_type == 'ap' :
@@ -143,7 +143,11 @@ def load_probe_data(self):
143143class Probe :
144144
145145 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 )
147151
148152 if processor ['@pluginName' ] == 'Neuropix-3a' or 'NP_PROBE' not in processor ['EDITOR' ]:
149153 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