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

Make time_range conversion to array dtype float64 #3638

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

JoeZiminski
Copy link
Collaborator

One of the most edge-case, inconsequential bugs ever: If your recording is < 1 second long and if you specify time_range=(0, 1) instead of (0, 1.0) then the cast from tuple to array will generate an int array. Whent_end is assigned to it it will round to 0 leading to time_range=(0, 0) and failure to retrieve traces.

This is for a super-short example file I am using😅

@JoeZiminski
Copy link
Collaborator Author

Also, apologies I was using Githubs web interface to raise the commit and it did it from this repo not my fork, please let me know if its a problem and I will redo

@alejoe91 alejoe91 added the widgets Related to widgets module label Jan 23, 2025
@samuelgarcia samuelgarcia merged commit 4351a24 into main Jan 23, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
widgets Related to widgets module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants