File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -338,8 +338,15 @@ def make(self, key):
338
338
supported_probe_types = probe .ProbeType .fetch ("probe_type" )
339
339
340
340
if acq_software == "SpikeGLX" :
341
- spikeglx_meta_filepath = get_spikeglx_meta_filepath (key )
342
- spikeglx_meta = spikeglx .SpikeGLXMeta (spikeglx_meta_filepath )
341
+ for meta_filepath in ephys_meta_filepaths :
342
+ spikeglx_meta = spikeglx .SpikeGLXMeta (meta_filepath )
343
+ if str (spikeglx_meta .probe_SN ) == inserted_probe_serial_number :
344
+ spikeglx_meta_filepath = meta_filepath
345
+ break
346
+ else :
347
+ raise FileNotFoundError (
348
+ "No SpikeGLX data found for probe insertion: {}" .format (key )
349
+ )
343
350
344
351
if spikeglx_meta .probe_model not in supported_probe_types :
345
352
raise NotImplementedError (
Original file line number Diff line number Diff line change @@ -117,10 +117,13 @@ def make(self, key):
117
117
assert len (oe_probe .recording_info ["recording_files" ]) == 1
118
118
data_dir = oe_probe .recording_info ["recording_files" ][0 ]
119
119
else :
120
- acq_software = acq_software .replace (" " , "" ).lower ()
121
- si_extractor : si .extractors .neoextractors = (
122
- si .extractors .extractorlist .recording_extractor_full_dict [acq_software ]
123
- ) # data extractor object
120
+ raise NotImplementedError (
121
+ f"SpikeInterface processing for { acq_software } not yet implemented."
122
+ )
123
+ acq_software = acq_software .replace (" " , "" ).lower ()
124
+ si_extractor : si .extractors .neoextractors = (
125
+ si .extractors .extractorlist .recording_extractor_full_dict [acq_software ]
126
+ ) # data extractor object
124
127
125
128
stream_names , stream_ids = si .extractors .get_neo_streams (
126
129
acq_software , folder_path = data_dir
You can’t perform that action at this time.
0 commit comments