Skip to content

Conversation

@benjeffery
Copy link
Member

Part of #605

@benjeffery
Copy link
Member Author

@Mergifyio rebase

@mergify
Copy link
Contributor

mergify bot commented Mar 16, 2022

rebase

✅ Branch has been successfully rebased

@codecov
Copy link

codecov bot commented Mar 16, 2022

Codecov Report

Merging #2157 (276bec7) into main (f6eaaba) will increase coverage by 0.00%.
The diff coverage is 94.59%.

Impacted file tree graph

@@           Coverage Diff            @@
##             main    #2157    +/-   ##
========================================
  Coverage   93.29%   93.29%            
========================================
  Files          27       27            
  Lines       25928    26039   +111     
  Branches     1163     1163            
========================================
+ Hits        24189    24294   +105     
- Misses       1709     1715     +6     
  Partials       30       30            
Flag Coverage Δ
c-tests 92.20% <100.00%> (+<0.01%) ⬆️
lwt-tests 89.05% <ø> (ø)
python-c-tests 72.27% <94.54%> (+0.18%) ⬆️
python-tests 98.89% <ø> (ø)

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

Impacted Files Coverage Δ
python/_tskitmodule.c 91.01% <94.54%> (+0.06%) ⬆️
c/tskit/genotypes.c 90.17% <100.00%> (+0.02%) ⬆️

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 f6eaaba...276bec7. Read the comment docs.

@benjeffery benjeffery force-pushed the python-variant branch 3 times, most recently from 25a3455 to 70dacb9 Compare March 31, 2022 10:23
@benjeffery benjeffery marked this pull request as ready for review March 31, 2022 10:24
@benjeffery
Copy link
Member Author

@jeromekelleher This is the basics of the Variant class -restricted_copy coming in the next PR.

@benjeffery
Copy link
Member Author

Note that the missing coverage should be fixed when the vargen tests are bought across.

@benjeffery benjeffery changed the title Variant class - WIP Variant lowlevel class Mar 31, 2022
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, spotted one small gap in testing.

args, kwds, "O&", kwlist, &tsk_id_converter, &site_id)) {
goto out;
}
err = tsk_variant_decode(self->variant, site_id, 0);
Copy link
Member

Choose a reason for hiding this comment

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

Should get test coverage on this - won't be covered by vargen as you can't specify the ID.

Easy to do, just pass in a bad site ID.

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 with a call to site -1

if (PyArray_SetBaseObject(array, (PyObject *) self) != 0) {
goto out;
}
/* PyArray_SetBaseObject steals a reference, so we have to incref the tree
Copy link
Member

Choose a reason for hiding this comment

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

out of date comment here, no tree

Copy link
Member Author

Choose a reason for hiding this comment

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

Now you know where I copy pasted from 😃! Fixed,

@benjeffery
Copy link
Member Author

@jeromekelleher fixed up!

@jeromekelleher
Copy link
Member

Looks good to go once linting CI is updated?

@benjeffery
Copy link
Member Author

@Mergifyio rebase

@mergify
Copy link
Contributor

mergify bot commented Apr 1, 2022

rebase

✅ Branch has been successfully rebased

@mergify mergify bot merged commit fecad52 into tskit-dev:main Apr 1, 2022
@benjeffery benjeffery deleted the python-variant branch April 4, 2022 11:45
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