Skip to content

Implement select_sorting_periods in core#4316

Merged
samuelgarcia merged 22 commits into
SpikeInterface:mainfrom
alejoe91:select_sorting_periods_core
Jan 16, 2026
Merged

Implement select_sorting_periods in core#4316
samuelgarcia merged 22 commits into
SpikeInterface:mainfrom
alejoe91:select_sorting_periods_core

Conversation

@alejoe91

Copy link
Copy Markdown
Member

Refactor based on #4314

@alejoe91 alejoe91 added the core Changes to core module label Jan 13, 2026
alejoe91 added a commit to alejoe91/spikeinterface that referenced this pull request Jan 13, 2026
Comment thread src/spikeinterface/core/sorting_tools.py
Comment thread src/spikeinterface/core/basesorting.py
Comment thread src/spikeinterface/core/sorting_tools.py
Comment thread src/spikeinterface/core/sorting_tools.py
Comment thread src/spikeinterface/core/sorting_tools.py Outdated
spike_vector = sorting.to_spike_vector()
spike_vector_list = sorting.to_spike_vector(concatenated=False)
keep_mask = np.zeros(len(spike_vector), dtype=bool)
all_global_indices = spike_vector_to_indices(spike_vector_list, unit_ids=sorting.unit_ids, absolute_index=True)

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.

Should this plus 249 use get_spike_vector_to_indices?

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.

yes!

SharedMemorySorting,
NpzFolderSorting,
NumpyFolderSorting,
generate_ground_truth_recording,

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.

why do we need this in testing sorting ?

Comment thread src/spikeinterface/core/analyzer_extension_core.py
@samuelgarcia

Copy link
Copy Markdown
Member

Et voilà!

@samuelgarcia samuelgarcia merged commit b19b022 into SpikeInterface:main Jan 16, 2026
15 checks passed
@alejoe91 alejoe91 deleted the select_sorting_periods_core branch March 20, 2026 09:41
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.

3 participants