Skip to content

Update read_kilosort_as_analyzer to allow for multiple-probes and user-defined recording - #4529

Merged
alejoe91 merged 15 commits into
SpikeInterface:mainfrom
chrishalcrow:pass-recording-to-kilosort-as-analyzer
Sep 14, 2026
Merged

alejoe91 merged 15 commits into
SpikeInterface:mainfrom
chrishalcrow:pass-recording-to-kilosort-as-analyzer

Conversation

@chrishalcrow

@chrishalcrow chrishalcrow commented Apr 17, 2026 •

Copy link
Copy Markdown
Member

This PR improves the read_kilosort_as_analyzer function, as discussed in (#4366).

The plan:

  • Allow user to pass their own recording
  • Allow for probe groups
  • Use channel_map.npy for device channel indices instead of range
  • If recording given, make sure it's consistent with probe.prb file in output

@chrishalcrow chrishalcrow added the exporters Related to exporters module label Apr 17, 2026
@chrishalcrow
chrishalcrow marked this pull request as ready for review May 26, 2026 10:27

@zm711 zm711 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple questions @chrishalcrow.

----------
folder_path : str or Path
Path to the output Phy folder (containing the params.py).
recording : BaseRecording

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as an FYI this breaks positional arguments for people... What is your logic for being okay with that?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The read_kilosort_as_analyzer has just been out since the last major release (0.104.0), so I think that it's ok to "break" this. On the other hand, we could also just move it at the end. @chrishalcrow what do you think?

@chrishalcrow chrishalcrow added this to the 0.105.0 milestone Sep 3, 2026
@alejoe91
alejoe91 merged commit af342e6 into SpikeInterface:main Sep 14, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exporters Related to exporters module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants