Skip to content

Take string methods for reference_sequence - #2011

Merged
mergify[bot] merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:take-refseq-data2
Dec 6, 2021
Merged

mergify[bot] merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:take-refseq-data2

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

A first pass to see what "take" methods will look like for strings. This is done on the reference sequence so that @bhaller can incorporate it into SLiM before we've gone through the full update.

Comment thread c/tskit/tables.c
tsk_reference_sequence_equals(const tsk_reference_sequence_t *self,
const tsk_reference_sequence_t *other, tsk_flags_t options)
{
int ret;

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.

This is an incidental change - I realised these checks were unnecessary now.

@codecov

codecov Bot commented Dec 4, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #2011 (6b3a2a2) into main (5a6dca0) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2011   +/-   ##
=======================================
  Coverage   93.35%   93.36%           
=======================================
  Files          27       27           
  Lines       25521    25529    +8     
  Branches     1111     1111           
=======================================
+ Hits        23826    23834    +8     
  Misses       1660     1660           
  Partials       35       35           
Flag Coverage Δ
c-tests 92.37% <100.00%> (+<0.01%) ⬆️
lwt-tests 89.05% <ø> (ø)
python-c-tests 72.09% <ø> (ø)
python-tests 98.79% <ø> (ø)

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

Impacted Files Coverage Δ
c/tskit/tables.c 90.27% <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 5a6dca0...6b3a2a2. Read the comment docs.

@bhaller

bhaller commented Dec 4, 2021

Copy link
Copy Markdown

LGTM @jeromekelleher. So this will get merged, #1971 will get merged, and then I'll pull the tskit sources into SLiM again and give it a whirl; IIRC at that point all the reference sequence API changes should be settled out, so we can make sure that it dovetails with SLiM nicely. Sound good?

@jeromekelleher

jeromekelleher commented Dec 5, 2021 •

Copy link
Copy Markdown
Member Author

Yep, that's the plan @bhaller. I think we'll push out a 0.99 release of the C API once this and #1971 have been merged, and a beta for Python 0.4.0. I'd really like to do this in a small number of days...

@bhaller

bhaller commented Dec 5, 2021

Copy link
Copy Markdown

Yep, that's the plan @bhaller. I think we'll push out a 0.99 release of the C API once this and #1971 have been merged, and a beta for Python 0.4.0. I'd really like to do this in a small number of days...

Yes, me too – I leave for a vacation in two weeks, and very much want to release SLiM 3.7 with all of this stuff before then. As soon as 0.99 is released I'll get going on the next steps. Great to have an official release with this before 1.0, BTW; it will allow all the broken tests in SLiM's test suite, due to the individuals table sorting change, to go green prior to 1.0's release, which will be quite helpful. Thanks!

@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, I think takeset is quite clever as it looks odd enough that I would make no assumptions and go read the docs 😆

@mergify
mergify Bot merged commit adc11ce into tskit-dev:main Dec 6, 2021
@bhaller

bhaller commented Dec 8, 2021

Copy link
Copy Markdown

SLiM is happy, and tskit 0.99.15 is now merged into SLiM's master branch. Onward!

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.

3 participants