Skip to content

Rename read_spikegadgets to read_spikegadgets_neuropixels and add has_spikegadgets_neuropixels_probes#440

Merged
alejoe91 merged 2 commits into
SpikeInterface:mainfrom
h-mayorquin:rename_spikegadgets
May 22, 2026
Merged

Rename read_spikegadgets to read_spikegadgets_neuropixels and add has_spikegadgets_neuropixels_probes#440
alejoe91 merged 2 commits into
SpikeInterface:mainfrom
h-mayorquin:rename_spikegadgets

Conversation

@h-mayorquin
Copy link
Copy Markdown
Collaborator

Closes #436. The current read_spikegadgets name implies it reads any SpikeGadgets .rec recording, but it only handles Neuropixels probes: it filters HardwareConfiguration on name == "NeuroPixels1" and silently ignores tetrodes and other probe types the headstage can record. This mirrors the misnomer that #427 corrected on the Open Ephys side, so I followed the same pattern: rename to read_spikegadgets_neuropixels and keep read_spikegadgets as a DeprecationWarning alias that forwards to it, so existing user code keeps working with no behavior change.

I also added has_spikegadgets_neuropixels_probes, equivalent to has_neuropixels_probes for Open Ephys. It parses the .rec XML header and returns True when at least one HardwareConfiguration Device entry has a Neuropixels source name.

@alejoe91 alejoe91 merged commit 4a449e0 into SpikeInterface:main May 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename read_spikegadgets to read_spikegadgets_neuropixels and add a Neuropixels detector

2 participants