Skip to content

Commit

Permalink
fix(spikeglx): minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ttngu207 committed Aug 15, 2024
1 parent e8870b9 commit 6764f8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions element_array_ephys/readers/spikeglx.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ def __init__(self, meta_filepath):
self.probe_PN = self.meta.get("imDatPrb_pn", "3A")

# Infer npx probe model (e.g. 1.0 (3A, 3B) or 2.0)
probe_model = self.meta.get("imDatPrb_type")
if probe_model is None:
probe_model = self.meta.get("imDatPrb_type", 1)
if probe_model < 1:
if "typeEnabled" in self.meta and self.probe_PN == "3A":
self.probe_model = "neuropixels 1.0 - 3A"
elif "typeImEnabled" in self.meta and self.probe_PN == "NP1010":
self.probe_model = "neuropixels 1.0"
else:
self.probe_model = self.probe_PN
if probe_model == 1100:
elif probe_model == 1100:
self.probe_model = "neuropixels UHD"
elif probe_model == 21:
self.probe_model = "neuropixels 2.0 - SS"
Expand Down

0 comments on commit 6764f8c

Please sign in to comment.