Skip to content

Fix shift times when t_start is None#3940

Merged
alejoe91 merged 2 commits into
SpikeInterface:mainfrom
h-mayorquin:fix_shift_times
May 21, 2025
Merged

Fix shift times when t_start is None#3940
alejoe91 merged 2 commits into
SpikeInterface:mainfrom
h-mayorquin:fix_shift_times

Conversation

@h-mayorquin
Copy link
Copy Markdown
Collaborator

Currently, trying to use recording.shift_times when the the segment t_start is None produces an error:

This PR fixes this so this situation is interpreted as t_start being 0 as we do in many other places of the code base. Here is a concrete example but other methods do the same implicitly:

https://github.com/h-mayorquin/spikeinterface/blob/252c8f85fbac2af67ff663330a009219994f6717/src/spikeinterface/core/baserecording.py#L929-L934

@h-mayorquin h-mayorquin self-assigned this May 20, 2025
@h-mayorquin h-mayorquin added the bug Something isn't working label May 20, 2025
@h-mayorquin h-mayorquin requested a review from alejoe91 May 20, 2025 20:57
@alejoe91 alejoe91 merged commit 2914abd into SpikeInterface:main May 21, 2025
15 checks passed
@h-mayorquin h-mayorquin deleted the fix_shift_times branch May 21, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants