Skip to content

Fix missing raise in Probe.set_contact_ids() size validation#401

Merged
alejoe91 merged 1 commit intoSpikeInterface:mainfrom
h-mayorquin:fix_wrong_error
Mar 17, 2026
Merged

Fix missing raise in Probe.set_contact_ids() size validation#401
alejoe91 merged 1 commit intoSpikeInterface:mainfrom
h-mayorquin:fix_wrong_error

Conversation

@h-mayorquin
Copy link
Copy Markdown
Collaborator

The ValueError for mismatched contact_ids size in set_contact_ids() was constructed but never raised due to a missing raise keyword. This fix also reorders the checks so size validation runs before uniqueness validation.

@alejoe91 alejoe91 merged commit 14d4cf2 into SpikeInterface:main Mar 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants