Skip to content

Commit 726a2bb

Browse files
committed
Merge branch 'main' into datajoint-spikeinterface
2 parents c2f2a79 + 6764f8c commit 726a2bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

element_array_ephys/readers/spikeglx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,15 @@ def __init__(self, meta_filepath):
266266
self.probe_PN = self.meta.get("imDatPrb_pn", "3A")
267267

268268
# Infer npx probe model (e.g. 1.0 (3A, 3B) or 2.0)
269-
probe_model = self.meta.get("imDatPrb_type")
270-
if probe_model is None:
269+
probe_model = self.meta.get("imDatPrb_type", 1)
270+
if probe_model < 1:
271271
if "typeEnabled" in self.meta and self.probe_PN == "3A":
272272
self.probe_model = "neuropixels 1.0 - 3A"
273273
elif "typeImEnabled" in self.meta and self.probe_PN == "NP1010":
274274
self.probe_model = "neuropixels 1.0"
275275
else:
276276
self.probe_model = self.probe_PN
277-
if probe_model == 1100:
277+
elif probe_model == 1100:
278278
self.probe_model = "neuropixels UHD"
279279
elif probe_model == 21:
280280
self.probe_model = "neuropixels 2.0 - SS"

0 commit comments

Comments
 (0)