Skip to content

Fix manual split example in process_by_channel_group docs - #4846

Merged
alejoe91 merged 3 commits into
SpikeInterface:mainfrom
guptaishaan:fix-4843
Oct 9, 2026
Merged

alejoe91 merged 3 commits into
SpikeInterface:mainfrom
guptaishaan:fix-4843

Conversation

@guptaishaan

Copy link
Copy Markdown
Contributor

Fixes #4843

The "Option 2: Manual splitting" example in doc/how_to/process_by_channel_group.rst passed recording=split_preprocessed_recording (the dict) to run_sorter inside the loop. run_sorter sorts all groups when given a dict, so each iteration sorted every group and returned a dict. It should pass sub_recording.

Thanks to @elduvelle for spotting this.

Verified with the simple sorter on an 8-channel recording split into 2 groups, on a CPU-only Linux node. Before: each iteration returned a dict with keys [0, 1]. After: each iteration returns one sorting for its own group.

Not verified: the sphinx docs build, and Kilosort2 itself (same run_sorter dict dispatch applies). No test added since this is an rst code block.

guptaishaan and others added 2 commits October 8, 2026 14:49
The "Option 2: Manual splitting" loop passed the whole dict of split
recordings to run_sorter instead of the per-group sub_recording. That
sorts every group on each iteration and returns a dict, not a sorting.
@alejoe91 alejoe91 added the documentation Improvements or additions to documentation label Oct 9, 2026
@alejoe91 alejoe91 added this to the 0.105.1 milestone Oct 9, 2026
Comment thread doc/how_to/process_by_channel_group.rst Outdated
@alejoe91
alejoe91 merged commit f08c987 into SpikeInterface:main Oct 9, 2026
2 of 3 checks passed
alejoe91 added a commit to alejoe91/spikeinterface that referenced this pull request Oct 9, 2026
…face#4846)

Co-authored-by: guptaishaan <guptaishaan@users.noreply.github.com>
Co-authored-by: Alessio Buccino <alejoe9187@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

possible documentation error for "sorting by channel group"

2 participants