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 edge unpacking #60

Merged
merged 2 commits into from
Jul 31, 2023
Merged

Fix edge unpacking #60

merged 2 commits into from
Jul 31, 2023

Conversation

talmo
Copy link
Contributor

@talmo talmo commented Jul 31, 2023

This PR fixes #58 to allow for the src, dst = skeleton.edges[0] API.

The issue was that we needed to raise a IndexError rather than ValueError to comply with the object subclassing API for __getitem__.

@codecov
Copy link

codecov bot commented Jul 31, 2023

Codecov Report

Merging #60 (1ff8d4f) into main (5e48a69) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #60   +/-   ##
=======================================
  Coverage   94.79%   94.79%           
=======================================
  Files          12       12           
  Lines        1192     1192           
=======================================
  Hits         1130     1130           
  Misses         62       62           
Files Changed Coverage Δ
sleap_io/model/skeleton.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@talmo talmo merged commit 568f893 into main Jul 31, 2023
9 checks passed
@talmo talmo deleted the talmo/fix-edge-unpack branch July 31, 2023 22:37
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.

Can't unpack edges when looping over the skeleton
1 participant