-
Notifications
You must be signed in to change notification settings - Fork 78
issue 1340: changed mrca signature to take more than 2 args. #2121
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2121 +/- ##
=======================================
Coverage 93.37% 93.37%
=======================================
Files 27 27
Lines 25589 25591 +2
Branches 1160 1161 +1
=======================================
+ Hits 23893 23895 +2
Misses 1666 1666
Partials 30 30
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
benjeffery
left a comment
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.
LGTM! Thanks @savitakartik,not sure why the coverage is complaining. Fix the conflict and we'll see how it goes on a second run.
jeromekelleher
left a comment
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 @savitakartik! Some minor comments about the tests, but overall this is what we're looking for.
Looks like you need to resolve some conflicts and update your branch. See the this guide for help on rebasing your branch. (Don't worry if things go a bit wrong, this happens to everyone the first few times!)
python/tests/test_highlevel.py
Outdated
| # 0 1 | ||
|
|
||
| def test_two_or_more_args(self): | ||
| t2 = self.t2 |
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.
There's probably not much point in assinging to a local variable here, can just do
self.tree.mrca(0, 1) == 2
# etc
|
Looks great, thanks @savitakartik. I think it's ready to go, after a squash and rebase. See the stdpopsim docs I linked to above for help on this. @benjeffery or I would be happy to help you through the process, if you like - it is definitely confusing the first few times! |
Yep, happy to do it, or to talk you through it on slack/call. LMK! |
… tests. Closes 1340 issue 1340: incorporated PR reviewer comments.
a81422a to
498dab3
Compare
jeromekelleher
left a comment
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.
Good to go 🎉
|
thanks for your help with my first PR, Jerome and Ben! |
Description
Thanks for contributing to tskit! ❤️
A guide to the PR process is here
changed tree.mrca signature to take more than 2 args.
added tests for the changed functionality in a new class TestMRCA.
Fixes #1340 <- Putting the issue number here will auto-close the issue when this PR is merged
PR Checklist: