added try except block for finding the right file
@@ -44,7 +44,12 @@ class SpikeGLXRecordingExtractor(NeoBaseRecordingExtractor):
}
meta_filename = signals_info_dict[self.stream_id]["meta_file"]
# Load probe geometry if available
+ try:
probe = pi.read_spikeglx(meta_filename)
+ except KeyError:
+ meta_filename = meta_filename.replace(".lf", ".ap")
+ probe = pi.read_spikeglx(meta_filename)
+
if probe.shank_ids is not None:
self.set_probe(probe, in_place=True, group_mode="by_shank")
else:
