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
Tree path length #2259
Tree path length #2259
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2259 +/- ##
===========================================
- Coverage 93.31% 81.54% -11.77%
===========================================
Files 27 27
Lines 26035 25894 -141
Branches 1170 1170
===========================================
- Hits 24294 21116 -3178
- Misses 1711 4711 +3000
- Partials 30 67 +37
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Some minor comments, and we're good to go then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks @jeremyguez! I've one more suggestion above for testing the interface, and we're done then.
Can you squash your commits down to one then please? (See this guide if you're not familiar with squashing)
65b4e8a
to
04da881
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, looking good! Just one last formatting nitpick.
Just fyi, rather than adding another commit and squashing, this is a case where "amending" a commit is handy. git commit -a --amend
should update the commit, and you can then force push to update the PR.
Minor change in path_length documentation Minor changes and added tests for path_length method Add tests for path_length method
04da881
to
6630dc1
Compare
Fantastic, thanks @jeremyguez ! |
Thanks for your help @jeromekelleher ! |
I give here a try at #2249. I commented out the last test (copied from
TestMRCA
) as the trees I generated withtskit.Tree.generate_balanced
did not have a virtual node (don't know why). I added some assert comparing withself.t.depth()
outputs, but not sure if it's a good idea.@jeromekelleher