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

Fix serializability of InjectDriftingTemplatesRecording #3130

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alejoe91
Copy link
Member

@alejoe91 alejoe91 commented Jul 3, 2024

Fixes #3125

@alejoe91 alejoe91 added core Changes to core module hybrid Related to Hybrid testing labels Jul 3, 2024
@alejoe91 alejoe91 added this to the 0.101.0 milestone Jul 3, 2024
i0, i1 = np.searchsorted(selected_peaks["segment_index"], [segment_index, segment_index + 1])
while selected_peaks["sample_index"][i0] <= margin[0] + offset:
while selected_peaks["sample_index"][i0] <= margin[0]:
Copy link
Member Author

Choose a reason for hiding this comment

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

@samuelgarcia @yger

This is a fix for #2980 :

  1. The spikes need to be lexsorted based on segment and sample indices
  2. sample indices start from 0 for each segment, so you don't need an offset!

Copy link
Member Author

Choose a reason for hiding this comment

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

I can make a separate PR for it if you prefer

Copy link
Member Author

Choose a reason for hiding this comment

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

made a separate PR #3132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to core module hybrid Related to Hybrid testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.save_to_folder() fails for the InjectDriftingTemplatesRecording
1 participant