-
Notifications
You must be signed in to change notification settings - Fork 240
Implement select_sorting_periods in core
#4316
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
Implement select_sorting_periods in core
#4316
Conversation
Co-authored-by: Chris Halcrow <57948917+chrishalcrow@users.noreply.github.com>
Co-authored-by: Chris Halcrow <57948917+chrishalcrow@users.noreply.github.com>
…select_sorting_periods_core
| 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) |
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.
Should this plus 249 use get_spike_vector_to_indices?
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.
yes!
| SharedMemorySorting, | ||
| NpzFolderSorting, | ||
| NumpyFolderSorting, | ||
| generate_ground_truth_recording, |
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.
why do we need this in testing sorting ?
…select_sorting_periods_core
|
Et voilà! |
Refactor based on #4314