Skip to content

Fix cache spike vector in base sorting#4710

Merged
alejoe91 merged 2 commits into
SpikeInterface:mainfrom
alejoe91:fix-base-sorting-cache
Jul 23, 2026
Merged

Fix cache spike vector in base sorting#4710
alejoe91 merged 2 commits into
SpikeInterface:mainfrom
alejoe91:fix-base-sorting-cache

Conversation

@alejoe91

Copy link
Copy Markdown
Member

When a sorting is loaded from a folder (NumpyFolderSorting), cached_spike_vector is read from spikes.npy which was saved with 4 fields (including channel_index). The code then tried to assign this 4-field structured array into a 3-field selection and numpy refuses the cast. Fix: explicitly select only the 3 needed fields from the source array.

@alejoe91
alejoe91 requested a review from chrishalcrow July 23, 2026 13:50
@alejoe91 alejoe91 added the core Changes to core module label Jul 23, 2026
@alejoe91
alejoe91 merged commit a5f7dbb into SpikeInterface:main Jul 23, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants