Skip to content

Conversation

@benjeffery
Copy link
Member

@benjeffery benjeffery commented Nov 7, 2025

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
Copy link

codecov bot commented Nov 7, 2025

Codecov Report

❌ Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.79%. Comparing base (dacbf38) to head (e7e4ec4).

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

tsk_size_t j;

for (j = 0; j < self->num_samples; j++) {
tsk_id_t u = self->samples[j];
Copy link
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
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
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