-
Notifications
You must be signed in to change notification settings - Fork 78
Variant lowlevel class #2157
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
Variant lowlevel class #2157
Conversation
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
0359e43 to
e1cf8a6
Compare
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
e1cf8a6 to
0fb26d4
Compare
25a3455 to
70dacb9
Compare
|
@jeromekelleher This is the basics of the Variant class - |
70dacb9 to
28a4394
Compare
|
Note that the missing coverage should be fixed when the vargen tests are bought across. |
jeromekelleher
left a comment
There was a problem hiding this 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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
python/_tskitmodule.c
Outdated
| if (PyArray_SetBaseObject(array, (PyObject *) self) != 0) { | ||
| goto out; | ||
| } | ||
| /* PyArray_SetBaseObject steals a reference, so we have to incref the tree |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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,
28a4394 to
48ba382
Compare
|
@jeromekelleher fixed up! |
|
Looks good to go once linting CI is updated? |
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
48ba382 to
276bec7
Compare
Part of #605