Repository navigation
Use the converted site mask when validating VCF positions - #3512
Conversation
jeromekelleher-bot
left a comment
There was a problem hiding this comment.
Thanks @rpinho, this is a real bug: site_mask is documented as accepting anything convertible to a boolean array, but since the zero-position check was added (0.6.0) it has used the unconverted argument. So any list mask raises a TypeError, and an integer mask gets interpreted as negative indexes, which can let a position-0 record through without the error. I've confirmed both on main, and the fix and tests look good.
As with #3514, a few small things before we merge:
- Could you add
:user:`rpinho`to the changelog entry? - Please squash the two commits into one.
- Please remove the
Co-Authored-By: Claude ...andClaude-Session: ...lines from the commit message.
Otherwise LGTM.
0b517c1 to
378570b
Compare
|
Thanks. I changed those. |
|
Changelog needs conflict resolution |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3512 +/- ##
=======================================
Coverage 91.72% 91.72%
=======================================
Files 37 37
Lines 30839 30839
Branches 4921 4921
=======================================
Hits 28286 28286
Misses 2223 2223
Partials 330 330
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
378570b to
eaa5d94
Compare
eaa5d94 to
7d3c58f
Compare
Description
Passing a list as
site_masktowrite_vcfraisesTypeErrorduring the position check. An integer mask array can also allow a record at position zero through that check. Validate positions with the same Boolean mask used to write the records. The tests cover masks that omit position zero and an integer mask that leaves it in the output.PR Checklist:
🤖 Generated with Claude Code
https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N