-
Notifications
You must be signed in to change notification settings - Fork 78
Add kwargs to tree accessors #848
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
12c83f8 to
fdc023c
Compare
|
It should be easy to put in a quick test that a few of those kwargs are actually having the desired effect? e.g. that the sample lists are there. |
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.
I think this is ok - I want to be very careful that we don't creep to an API full of **kwargs to the point where finding the docs on what you can actually pass in is hard. (Looking at you, matplotlib!)
Oh, god, good point. Can we make sure to stick in something that will produce a link to where the kwargs are actually listed? (is this :class: |
Yes, I think this is in the original PR. I linked thew |
|
I just realised that, actually, the main That's independent of the actual documentation of the |
|
In my view |
If we can test for it, that seems a good approach. |
fdc023c to
e587945
Compare
|
In my recent push, I've added the missing I think #851 should be merged first, though, so that we can properly match up the order of parameters in |
0d051a1 to
83554be
Compare
Additionally, add the missing root_threshold arg to .trees(), placing the deprecated param at the end (since it is now kw-only, this should not cause a change in behaviour). Fixes tskit-dev#847
83554be to
1101f95
Compare
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.
Signature test was almost exactly what I was thinking. I've force pushed a small change to make it more explicit. Thanks @hyanwong!
|
Thanks @benjeffery - you were working late! |
Fixes #847
No tests. What, if any, would we like?