Skip to content

Raise on wrong-sized device_channel_indices instead of silently accepting#430

Merged
alejoe91 merged 1 commit intoSpikeInterface:mainfrom
h-mayorquin:raise_on_wrong_device_channel_indices_size
Apr 24, 2026
Merged

Raise on wrong-sized device_channel_indices instead of silently accepting#430
alejoe91 merged 1 commit intoSpikeInterface:mainfrom
h-mayorquin:raise_on_wrong_device_channel_indices_size

Conversation

@h-mayorquin
Copy link
Copy Markdown
Collaborator

Probe.set_device_channel_indices was constructing a ValueError on size mismatch but never raising it, so wrong-sized wiring arrays were stored and the probe silently ended up in an invalid state. Added the missing raise and a regression test that passes two indices to a three-contact probe and asserts the error.

@h-mayorquin h-mayorquin marked this pull request as ready for review April 24, 2026 02:48
@alejoe91 alejoe91 merged commit 6c94c35 into SpikeInterface:main Apr 24, 2026
8 of 9 checks passed
@h-mayorquin h-mayorquin deleted the raise_on_wrong_device_channel_indices_size branch April 24, 2026 14:56
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