-
Notifications
You must be signed in to change notification settings - Fork 75
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
Allow multi-sample tips for Tree.draw_svg() #3010
Conversation
Note that this should allow us to e.g. collapse clades containing all non-tracked nodes. I will follow up with another PR to deal with large untracked polytomies. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3010 +/- ##
=======================================
Coverage 89.82% 89.82%
=======================================
Files 29 29
Lines 31986 32030 +44
Branches 6197 6207 +10
=======================================
+ Hits 28730 28772 +42
Misses 1859 1859
- Partials 1397 1399 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
4bb3779
to
b2f59f3
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.
LGTM, just need to cover a missed error condition if poss
python/tskit/drawing.py
Outdated
node_x_coord[c] for c in self.tree.children(u) if c in node_x_coord | ||
] | ||
if len(child_coords) == 0: | ||
raise ValueError( |
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.
Should try to cover this if possible
9d2965b
to
0f4dc43
Compare
…ferent postorder This additional use of "order" is deliberately not documented.
0f4dc43
to
a54f16e
Compare
As discussed with @benjeffery, these are induced by passing a different (postorder) list as the
order
parameter. This additional use of "order" is deliberately not documented. Here's an example:The stored SVGs have changed because as part of the refactoring I properly rounded some floating point values, so now e.g. positions like
7.0
are stored as simply7
in the SVG, for clarity and efficiency.