Skip to content

Conversation

@GertjanBisschop
Copy link
Member

First pass at low-level Python and Python API for Tree.edge_array.

@codecov
Copy link

codecov bot commented Jun 22, 2022

Codecov Report

Merging #2357 (8e92e5a) into main (fb67c48) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2357      +/-   ##
==========================================
- Coverage   93.28%   93.25%   -0.03%     
==========================================
  Files          28       28              
  Lines       26840    26863      +23     
  Branches     1229     1229              
==========================================
+ Hits        25038    25052      +14     
- Misses       1769     1778       +9     
  Partials       33       33              
Flag Coverage Δ
c-tests 92.25% <ø> (ø)
lwt-tests 89.05% <ø> (ø)
python-c-tests 71.25% <86.95%> (+0.03%) ⬆️
python-tests 98.72% <100.00%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
python/_tskitmodule.c 90.63% <100.00%> (+0.02%) ⬆️
python/tskit/drawing.py 99.17% <100.00%> (ø)
python/tskit/trees.py 97.84% <100.00%> (-0.50%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fb67c48...8e92e5a. Read the comment docs.

@jeromekelleher
Copy link
Member

We should probably get this in for 0.5.0 @benjeffery, since the low-level changes are done already?

@jeromekelleher jeromekelleher added this to the Python 0.5.0 milestone Jun 22, 2022
Copy link
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

for ts in get_example_tree_sequences():
edge_visited = np.zeros(ts.num_edges, dtype=bool)
for mapping, tree in zip(ts._tree_node_edges(), ts.trees()):
# for mapping, tree in zip(ts._tree_node_edges(), ts.trees()):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can delete the _tree_node_edges thing now as well (not sure where that's come from?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general we don't want to keep commented out bits lying around -that's what git is for!

Copy link
Member

@benjeffery benjeffery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one question about the change log.

@GertjanBisschop GertjanBisschop force-pushed the add_edge_array_python branch from 3d1d281 to 6982204 Compare June 22, 2022 12:54
@GertjanBisschop
Copy link
Member Author

Resolves #2361

@benjeffery
Copy link
Member

benjeffery commented Jun 22, 2022

@GertjanBisschop I'll fix up these comments and merge, as this is the last PR before 0.5.0!
Just realised you've already addressed the feedback! Thanks!

@benjeffery
Copy link
Member

CircleCI still AWOL.

@benjeffery benjeffery force-pushed the add_edge_array_python branch from 6982204 to 428768f Compare June 22, 2022 13:15
@benjeffery
Copy link
Member

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Jun 22, 2022

refresh

✅ Pull request refreshed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants