Skip to content

Add SortingAnalyzer.split() function for aggregated analyzers#4660

Open
alejoe91 wants to merge 5 commits into
SpikeInterface:mainfrom
alejoe91:split-analyzers
Open

Add SortingAnalyzer.split() function for aggregated analyzers#4660
alejoe91 wants to merge 5 commits into
SpikeInterface:mainfrom
alejoe91:split-analyzers

Conversation

@alejoe91

@alejoe91 alejoe91 commented Jul 8, 2026

Copy link
Copy Markdown
Member

Returns a dictionary with sliced analyzers in units/channels and a helper is_aggregated function

@alejoe91 alejoe91 added core Changes to core module Edinburgh hackathon 2026 PRs from Edinburgh hackathon 2026 labels Jul 8, 2026
Comment thread src/spikeinterface/core/sparsity.py Outdated
and "aggregation_key" in self.get_recording_property_keys()
)

def split_aggregated(self):

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.

I'm not a huge fan of this name. split_by_aggregation_key?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Mmmm....aggregation key is our internal naming so I don't think it's very informative to the user

@chrishalcrow chrishalcrow 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.

Approve, modulo the name.
Very neat PR!

Comment thread src/spikeinterface/core/sortinganalyzer.py Outdated
Comment thread src/spikeinterface/core/tests/test_sortinganalyzer.py Outdated
Co-authored-by: Chris Halcrow <57948917+chrishalcrow@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to core module Edinburgh hackathon 2026 PRs from Edinburgh hackathon 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants