Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sparse waveforms for Spyking Circus 2 #1943

Merged
merged 39 commits into from
Sep 20, 2023

Conversation

yger
Copy link
Collaborator

@yger yger commented Aug 29, 2023

PR to provide the support for sparse waveforms in circus 2, and factorized matching engine. The internal machinery now uses the sparsification mecanisms provided by SI, and thus we should be able to benchmark properly that among sorters

@yger yger marked this pull request as draft August 29, 2023 07:14
@alejoe91 alejoe91 added the sorters Related to sorters module label Aug 29, 2023
@yger yger marked this pull request as ready for review August 29, 2023 13:22
mode = "folder"

sorting_folder = tmp_folder / "sorting"
sorting = NumpySorting.from_times_labels(spikes["sample_index"], spikes["unit_index"], fs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is faster and should be the default when we already have a spike vector.
Note the you need to given also unit_ids

Suggested change
sorting = NumpySorting.from_times_labels(spikes["sample_index"], spikes["unit_index"], fs)
sorting = NumpySorting(spikes, fs)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yger this is the only change that is required! Can you add the unit_ids?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. However, I have a question for the new waveform speedup, with single or multi buffers. @samuelgarcia @alejoe91 shouldn't this functionnality be exposed at the extract_waveforms() level?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is the plan but not now.
And WaveformEtractor will be refactor a lot anyway not even sure this will be done before the big refactoring.

@samuelgarcia
Copy link
Member

ok for me.

@yger
Copy link
Collaborator Author

yger commented Sep 20, 2023

@samuelgarcia I've checked the behaviour, and this is working fine, so I think you can proceed with merging this PR

@samuelgarcia samuelgarcia merged commit b00b92e into SpikeInterface:main Sep 20, 2023
8 checks passed
@yger yger deleted the factoring_omp branch September 22, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sorters Related to sorters module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants