-
Notifications
You must be signed in to change notification settings - Fork 63
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
New desired functions for IntervalSets - expand, contract, is_in #303
Comments
Maybe |
For
and idx is
then you can do ~
I can add 1 second by recreating a new object:
If the start is after the next end, IntervalSet will automatically merge them during initialization. ~
~ |
Just starting to play around with Pynapple, and I find a few expected IntervalSet functions missing. I'd love to be able to
Though note that here, expanding should cause automerging of nearby intervals (so the number might decrease), and contracting should autodrop zero-duration intervals (so the number might decrease).
Also, I'd love to be able to do:
The text was updated successfully, but these errors were encountered: