-
Notifications
You must be signed in to change notification settings - Fork 240
Improvement to compute sparsity without WaveformsExtractor #2410
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
Conversation
|
@yger @h-mayorquin @alejoe91 : ready to review |
|
If we along these lines, then I would also be tempted to modify all the function in templates_tools.py to also have an extended signature with templates_or_waveform_extractor instead of simply waveform_extractor. What do you think ? Can I do that? This would be usefull for playing with templates in the hybrid case, i.e. sorting them by amplitudes, slicing them, ... |
zm711
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few docstring fixes and an assert tweak.
|
I will built my PR on this one, but don't you think that estimate_templates() should return a Templates object ? I mean, we should enforce such object everywhere, no? |
Co-authored-by: Zach McKenzie <92116279+zm711@users.noreply.github.com>
This PR:
WaveformExtractor(as before) andTemplatesobjectsestimate_templates()which is fast and do not needWaveformExtractorrandom_spikes_selection()estimate_sparsity()function. This is also fast. This could replaceprecompute_sparsity()This will be used bySortingResultThis PR do not break any signature or behavior. Just improve or enhance previous functions.