Skip to content

add sort_by_depth kwargs to RasterWidget#4544

Draft
tayheau wants to merge 3 commits intoSpikeInterface:mainfrom
tayheau:eventplot
Draft

add sort_by_depth kwargs to RasterWidget#4544
tayheau wants to merge 3 commits intoSpikeInterface:mainfrom
tayheau:eventplot

Conversation

@tayheau
Copy link
Copy Markdown
Contributor

@tayheau tayheau commented Apr 21, 2026

No description provided.

@alejoe91 alejoe91 added the widgets Related to widgets module label Apr 21, 2026
Comment thread src/spikeinterface/widgets/rasters.py Outdated
Comment thread src/spikeinterface/widgets/rasters.py Outdated
Co-authored-by: Chris Halcrow <57948917+chrishalcrow@users.noreply.github.com>
@tayheau tayheau marked this pull request as draft April 22, 2026 12:08
@tayheau
Copy link
Copy Markdown
Contributor Author

tayheau commented Apr 22, 2026

just quickly changing the logic to add a widget checkbox for depth sorting

unit_ids = sorting.unit_ids

if sort_by_depth:
if not sorting_analyzer_or_sorting.has_extension("unit_locations"):
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.

has_extension will fail if it's a sorting. Maybe return an error if it's a sorting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

widgets Related to widgets module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants