Skip to content

Fix durations in generate_hybrid_recording#3985

Merged
samuelgarcia merged 3 commits into
SpikeInterface:mainfrom
alejoe91:fix-hybrid-sorting-duration
Jul 2, 2025
Merged

Fix durations in generate_hybrid_recording#3985
samuelgarcia merged 3 commits into
SpikeInterface:mainfrom
alejoe91:fix-hybrid-sorting-duration

Conversation

@alejoe91
Copy link
Copy Markdown
Member

In the hybrid generation, if the recording has timestamps, they might exceed the (num_samples/sampling_frequency) duration, generating spikes beyond the actual duration of the recording.

For hybrid generation we can simply use num_samples / sampling_frequency

@alejoe91 alejoe91 requested a review from samuelgarcia June 16, 2025 10:03
@alejoe91 alejoe91 added the generators Related to generator tools label Jun 16, 2025
@zm711
Copy link
Copy Markdown
Member

zm711 commented Jun 17, 2025

Just updated branch so that testing will work.

Comment thread src/spikeinterface/generation/hybrid_tools.py Outdated
Co-authored-by: Zach McKenzie <92116279+zm711@users.noreply.github.com>
@samuelgarcia samuelgarcia merged commit 0741fe2 into SpikeInterface:main Jul 2, 2025
15 checks passed
@alejoe91 alejoe91 deleted the fix-hybrid-sorting-duration branch March 20, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

generators Related to generator tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants