Skip to content

Allow internal nodes when isolate_as_missing - #3313

Merged
benjeffery merged 1 commit into
tskit-dev:mainfrom
benjeffery:internal-sample
Nov 11, 2025
Merged

benjeffery merged 1 commit into
tskit-dev:mainfrom
benjeffery:internal-sample

Conversation

@benjeffery

@benjeffery benjeffery commented Nov 7, 2025 •

Copy link
Copy Markdown
Member

The changes to code here are relatively minor, but I went half mad thinking about if that was the right changes, so there are a lot of tests. Replaces #3301

I've split the alignments fix for non-site bases into another PR that is almost done.

@codecov

codecov Bot commented Nov 7, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.79%. Comparing base (8f138e9) to head (64d3443).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
c/tskit/genotypes.c 91.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3313      +/-   ##
==========================================
- Coverage   89.80%   89.79%   -0.01%     
==========================================
  Files          29       29              
  Lines       31043    31056      +13     
  Branches     5682     5685       +3     
==========================================
+ Hits        27877    27888      +11     
  Misses       1779     1779              
- Partials     1387     1389       +2     
Flag Coverage Δ
c-tests 86.84% <91.66%> (-0.01%) ⬇️
lwt-tests 80.38% <ø> (ø)
python-c-tests 87.05% <ø> (ø)
python-tests 98.84% <100.00%> (+<0.01%) ⬆️
python-tests-no-jit 33.58% <0.00%> (-0.03%) ⬇️
python-tests-numpy1 50.14% <0.00%> (-0.04%) ⬇️

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

Files with missing lines Coverage Δ
python/tskit/genotypes.py 99.17% <ø> (ø)
python/tskit/trees.py 98.88% <100.00%> (+<0.01%) ⬆️
python/tskit/util.py 99.28% <ø> (ø)
c/tskit/genotypes.c 84.48% <91.66%> (-0.27%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@benjeffery benjeffery added this to the Python 1.0 milestone Nov 10, 2025

@jeromekelleher jeromekelleher 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

Comment thread c/tskit/genotypes.c
tsk_size_t j;

for (j = 0; j < self->num_samples; j++) {
tsk_id_t u = self->samples[j];

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.

Push declaration up to first chunk

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed

@benjeffery
benjeffery marked this pull request as ready for review November 10, 2025 14:21
@benjeffery
benjeffery enabled auto-merge November 10, 2025 14:23
@benjeffery
benjeffery force-pushed the internal-sample branch 2 times, most recently from 8e9bdce to 06b7bc2 Compare November 11, 2025 10:46
@benjeffery
benjeffery disabled auto-merge November 11, 2025 14:26
@benjeffery
benjeffery enabled auto-merge November 11, 2025 14:52
@benjeffery
benjeffery added this pull request to the merge queue Nov 11, 2025
Merged via the queue into tskit-dev:main with commit 8e6b1e6 Nov 11, 2025
@benjeffery
benjeffery deleted the internal-sample branch November 11, 2025 15:59
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.

2 participants