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

fix indexing of IntervalSet to be able to use -1 #409

Merged
merged 3 commits into from
Feb 6, 2025
Merged

Conversation

sjvenditto
Copy link
Collaborator

addresses issue #407

fixes indexing of IntervalSet such that indexing like ep[-1] or ep[[0,-1]] doesn't throw an error

@sjvenditto sjvenditto requested a review from gviejo as a code owner February 3, 2025 16:43
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
pynapple/core/interval_set.py 94.61% <100.00%> (+0.27%) ⬆️
pynapple/core/metadata_class.py 78.89% <ø> (-3.67%) ⬇️

... and 1 file with indirect coverage changes

@gviejo gviejo merged commit 658ad8e into dev Feb 6, 2025
15 checks passed
@gviejo gviejo deleted the fix_iset_index branch February 6, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants