Skip to content

Commit

Permalink
Merge pull request #202 from ttngu207/main
Browse files Browse the repository at this point in the history
fix(spikeglx): minor bugfix in reading npx probe model of older versions
  • Loading branch information
kushalbakshi authored Sep 20, 2024
2 parents 71d9a42 + 2d57102 commit 780352b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion element_array_ephys/readers/spikeglx.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ 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", 1)
probe_model = self.meta.get("imDatPrb_type", 0)
if probe_model < 1:
if "typeEnabled" in self.meta and self.probe_PN == "3A":
self.probe_model = "neuropixels 1.0 - 3A"
Expand Down

0 comments on commit 780352b

Please sign in to comment.