Skip to content

Implement improved mrca. - #1313

Merged
mergify[bot] merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:mrca-stuff
Apr 19, 2021
Merged

mergify[bot] merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:mrca-stuff

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

Closes #1309

Implements @feilchenfeldt's beautifully elegant mrca algorithm discussed in #1306

Would you mind taking a look at the diff please @feilchenfeldt?

@codecov

codecov Bot commented Apr 16, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #1313 (4a0a5de) into main (759f0bb) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1313   +/-   ##
=======================================
  Coverage   93.81%   93.81%           
=======================================
  Files          26       26           
  Lines       22189    22174   -15     
  Branches     1006     1006           
=======================================
- Hits        20816    20803   -13     
+ Misses       1340     1338    -2     
  Partials       33       33           
Flag Coverage Δ
c-tests 92.44% <100.00%> (+<0.01%) ⬆️
lwt-tests 92.97% <ø> (ø)
python-c-tests 95.14% <ø> (ø)
python-tests 98.86% <ø> (ø)

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

Impacted Files Coverage Δ
c/tskit/trees.c 94.87% <100.00%> (+0.04%) ⬆️

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 759f0bb...4a0a5de. Read the comment docs.

@feilchenfeldt feilchenfeldt left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The algorithm looks good to me.

@benjeffery benjeffery left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, great stuff.
PInging @JSaha20 as it was mentioned she would be interested in the changes.

@mergify
mergify Bot merged commit 2f451c4 into tskit-dev:main Apr 19, 2021
@mergify

mergify Bot commented Apr 19, 2021

Copy link
Copy Markdown
Contributor

This pull request has been merged with the
unsupported configuration option bot_account.

This option will be ignored starting May 1st, 2021, and removed
on June 1st, 2021.

This option can be replaced by update_bot_account, merge_bot_account or both
depending on your use-case (https://docs.mergify.io/actions/merge/).

@jeromekelleher
jeromekelleher deleted the mrca-stuff branch April 19, 2021 11:14
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.

Remove memory allocations from get_mrca C implementation.

3 participants