Skip to content

Make get_data for valid unit periods use unit ids, not indices#4468

Merged
alejoe91 merged 3 commits intoSpikeInterface:mainfrom
chrishalcrow:valid-periods-ids-indices-bug
Mar 25, 2026
Merged

Make get_data for valid unit periods use unit ids, not indices#4468
alejoe91 merged 3 commits intoSpikeInterface:mainfrom
chrishalcrow:valid-periods-ids-indices-bug

Conversation

@chrishalcrow
Copy link
Copy Markdown
Member

Fixes a bug. When using get_data(outputs="by_unit") with the valid unit periods extension, the method was using unit indices, not ids.

Also added a test.

@chrishalcrow chrishalcrow requested review from alejoe91 and m-beau March 25, 2026 13:32
@chrishalcrow chrishalcrow added bug Something isn't working postprocessing Related to postprocessing module labels Mar 25, 2026
@chrishalcrow chrishalcrow removed the request for review from m-beau March 25, 2026 13:32
@alejoe91
Copy link
Copy Markdown
Member

Good catch!

@alejoe91 alejoe91 merged commit 6cf41bb into SpikeInterface:main Mar 25, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working postprocessing Related to postprocessing module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants