Skip to content

Simplify update_bin by collapsing duplicate branches#1382

Draft
nh13 wants to merge 1 commit intopysam-developers:masterfrom
nh13:nh13/simplify-update-bin
Draft

Simplify update_bin by collapsing duplicate branches#1382
nh13 wants to merge 1 commit intopysam-developers:masterfrom
nh13:nh13/simplify-update-bin

Conversation

@nh13
Copy link
Copy Markdown
Contributor

@nh13 nh13 commented Mar 2, 2026

Summary

  • Collapse three branches to two in update_bin() — the unmapped (branch 1) and no-CIGAR (branch 3) cases were identical, both treating the alignment as length 1

Test plan

  • Run REF_PATH=: pytest tests/AlignedSegment_test.py tests/AlignmentFile_test.py -v

AI disclosure: This PR was AI-assisted using Claude Code. The issue was identified via AI-guided code review, and the implementation was drafted by AI with human review and approval.

@nh13 nh13 marked this pull request as draft March 3, 2026 06:21
@nh13 nh13 changed the title refactor: simplify update_bin by collapsing duplicate branches Simplify update_bin by collapsing duplicate branches Mar 3, 2026
@nh13 nh13 force-pushed the nh13/simplify-update-bin branch from 64663d8 to b2f9f35 Compare March 3, 2026 06:24
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.

1 participant