-
Notifications
You must be signed in to change notification settings - Fork 72
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 array access. #1320
Tree array access. #1320
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1320 +/- ##
==========================================
+ Coverage 93.80% 93.82% +0.01%
==========================================
Files 26 26
Lines 22143 22209 +66
Branches 1013 1013
==========================================
+ Hits 20772 20837 +65
- Misses 1338 1339 +1
Partials 33 33
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
c7098ce
to
668f762
Compare
Looks like this is working well. I think it's probably a good idea to add the Should we go ahead and merge this much, and try it out for a bit before documenting, or go ahead and document it now and be done with it? I doubt we can change much here, it's pretty much a done-deal I think. @benjeffery, any thoughts? |
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.
This is awesome stuff, couple of small comments.
I wonder about the _array
naming though. Would left_children
, parents
etc. fit more with our existing names as we don't put type information in names normally?
Lets merge this, then file issues under 0.3.6 for |
It's a bit awkward, I agree, but I'm not sure there's much choice. If we were starting again I'd get rid of the |
(Thanks for the review btw, will update later) |
668f762
to
dcf2bc9
Compare
OK, updated and documented. @petrelharp, fancy taking a quick look? (I finally figured out how to make repeated bits of text in RST: this would come in handy for the stats API!) |
Closes tskit-dev#1299 Also refresh links in docs/conf.py.
dcf2bc9
to
8750471
Compare
@@ -1,3 +1,11 @@ | |||
.. |tree_array_warning| replace:: This is a high-performance interface which |
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.
woah nice
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.
Yeah!
I did look at this, btw - looks good. |
WIP for #1299
Trickier than I thought because of the circular references between the array and the Tree object, which owns the memory.