Skip to content

Remove tsk_diff_iter_t #3221

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

Merged
merged 1 commit into from
Jun 16, 2025
Merged

Conversation

benjeffery
Copy link
Member

Fixes #2797

Copy link

codecov bot commented Jun 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.61%. Comparing base (47572c1) to head (be8a0b2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3221      +/-   ##
==========================================
- Coverage   89.63%   89.61%   -0.03%     
==========================================
  Files          28       28              
  Lines       32004    31893     -111     
  Branches     5879     5870       -9     
==========================================
- Hits        28688    28581     -107     
+ Misses       1886     1884       -2     
+ Partials     1430     1428       -2     
Flag Coverage Δ
c-tests 86.59% <ø> (-0.07%) ⬇️
lwt-tests 80.38% <ø> (ø)
python-c-tests 88.18% <ø> (ø)
python-tests 98.86% <ø> (ø)

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

Files with missing lines Coverage Δ
c/tskit/tables.c 83.02% <ø> (-0.19%) ⬇️
c/tskit/trees.c 90.61% <ø> (-0.01%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

I don't think we ever documented this, so I'm happy with ditching it.

@molpopgen is the only person I can think of that this would potentially affect. Are you happy for us to ditch this? The functionality is replaced by the much more efficient and flexible tree_iter stuff.

@benjeffery
Copy link
Member Author

benjeffery commented Jun 16, 2025

@molpopgen Said it was ok at #2797 (comment)

@benjeffery benjeffery added this pull request to the merge queue Jun 16, 2025
Merged via the queue into tskit-dev:main with commit f8ee2fa Jun 16, 2025
18 checks passed
@molpopgen
Copy link
Member

It is fine for removal -- but even w/the tree iter stuff, isn't it often much more efficient to use edge differences for doing various calculations? (That has always been my experience.)

Also -- what tree iter stuff? (Sorry if that question seems odd, but I find a lot of the changes on the C side to be a bit opaque/undescribed.)

@benjeffery benjeffery deleted the remove-diff-iter branch June 16, 2025 15:16
@jeromekelleher
Copy link
Member

It's based on the "tree position" class that we've been working towards as a way of encapsulating the state of along the genome traversals in a better way. Some pointers:

This is also the basis of the Numba interface we'll be adding (#3225 )

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 tsk_diff_iter_t
3 participants