Skip to content
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

Add .ancestor(n) method #570

Merged
merged 1 commit into from
Mar 8, 2022
Merged

Conversation

hyanwong
Copy link
Member

@hyanwong hyanwong commented Aug 4, 2021

And allow eq for ancestors (which contain numpy arrays)

Fixes #569

@codecov
Copy link

codecov bot commented Aug 4, 2021

Codecov Report

Merging #570 (ce04a9b) into main (48c1367) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #570   +/-   ##
=======================================
  Coverage   93.08%   93.09%           
=======================================
  Files          17       17           
  Lines        5136     5140    +4     
  Branches      954      954           
=======================================
+ Hits         4781     4785    +4     
  Misses        235      235           
  Partials      120      120           
Flag Coverage Δ
C 93.09% <100.00%> (+<0.01%) ⬆️
python 96.31% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
tsinfer/formats.py 98.44% <100.00%> (+<0.01%) ⬆️

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 48c1367...ce04a9b. Read the comment docs.

@hyanwong
Copy link
Member Author

hyanwong commented Mar 7, 2022

It would be nice to merge this. Nothing controversial here, I think.

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

And allow __eq__ for ancestors (which contain numpy arrays)
@hyanwong
Copy link
Member Author

hyanwong commented Mar 7, 2022

LGTM

I guess we can flag this for automerging then

@mergify mergify bot merged commit ec8245e into tskit-dev:main Mar 8, 2022
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.

Provide ancestor() accessor method
2 participants