Skip to content

Allow for main_channel_indices to use rec attributes - #4867

Merged
alejoe91 merged 8 commits into
SpikeInterface:mainfrom
chrishalcrow:add-rec-attributes-to-main-channel-indices
Oct 27, 2026
Merged

alejoe91 merged 8 commits into
SpikeInterface:mainfrom
chrishalcrow:add-rec-attributes-to-main-channel-indices

Conversation

@chrishalcrow

@chrishalcrow chrishalcrow commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

A sorting has main_channel_ids, while an analyzer has main_channel_indices.

To do go from ids to indices the analyzer must, on creation or load, have access to the channel ids to indices map. On load, we were getting this from the recording attached to the analyzer. But often the recording becomes unattached to the analyzer. There is a more robust way to get this map: through the rec_attributes of the analyzer. This PR allows the analyzer to use rec_attributes!

Comment thread src/spikeinterface/core/sortinganalyzer.py Outdated
@alejoe91 alejoe91 added the core Changes to core module label Oct 15, 2026
@alejoe91

Copy link
Copy Markdown
Member

@chrishalcrow can you add a descriptions and fix tests here? :)

@chrishalcrow
chrishalcrow marked this pull request as ready for review October 27, 2026 09:53
@alejoe91
alejoe91 merged commit fb9a4c9 into SpikeInterface:main Oct 27, 2026
17 checks passed
@alejoe91 alejoe91 mentioned this pull request Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants