-
Notifications
You must be signed in to change notification settings - Fork 241
Implement the cached_lexsorted_spike_vector. #4315
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
…that replace the _cached_spike_trains
for more information, see https://pre-commit.ci
…e into lexsort_cache # Conflicts: # src/spikeinterface/core/basesorting.py
for more information, see https://pre-commit.ci
…e into lexsort_cache
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
Can I start building my PR on this one ? @samuelgarcia |
| if propagate_cache and self._cached_spike_trains is not None: | ||
| sorting._cached_spike_trains = self._cached_spike_trains | ||
| if propagate_cache: | ||
| sorting._cached_lexsorted_spike_vector = deepcopy(self._cached_lexsorted_spike_vector) |
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.
This could be None, right?
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.
it is an empty dict by default I change it with len() > 0
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.
I also did more cache propagation now
Co-authored-by: Chris Halcrow <57948917+chrishalcrow@users.noreply.github.com>
for more information, see https://pre-commit.ci
|
@alejoe91 @chrishalcrow more or less ready on my side |
Idea from Pierre Yger:
Implement the
sorting._cached_lexsorted_spike_vectorThis PR also remove the
sorting._cached_spike_trainsbecause it become uselessThe must merged and discussed before #4308
@yger
To be discussed 2 possibilities: