Skip to content

Support time_vector in resample()#4429

Merged
alejoe91 merged 1 commit intoSpikeInterface:mainfrom
grahamfindlay:feature/resample_time_vector
Mar 9, 2026
Merged

Support time_vector in resample()#4429
alejoe91 merged 1 commit intoSpikeInterface:mainfrom
grahamfindlay:feature/resample_time_vector

Conversation

@grahamfindlay
Copy link
Contributor

Enhances resample() to propagate a time_vector, similar to decimate().
In the case of an integer ratio between the original sample rate and the resample rate, simple array slicing is used.
In the case of a non-integer ratio, the new timestamps are interpolated (and a warning is emitted to the user to gently encourage use of an integer ratio).

@alejoe91 alejoe91 added the preprocessing Related to preprocessing module label Mar 9, 2026
@alejoe91 alejoe91 added this to the 0.104.0 milestone Mar 9, 2026
@alejoe91 alejoe91 merged commit 3dbfacf into SpikeInterface:main Mar 9, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preprocessing Related to preprocessing module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants