Skip to content

Frame align review#5

Open
mtkalms wants to merge 13 commits intomainfrom
frame-align-review
Open

Frame align review#5
mtkalms wants to merge 13 commits intomainfrom
frame-align-review

Conversation

@mtkalms
Copy link
Copy Markdown
Contributor

@mtkalms mtkalms commented Mar 18, 2026

  • Add parameters to adjust how groups of gaps are merged
  • Add documentation

@mtkalms mtkalms self-assigned this Mar 18, 2026
@mtkalms mtkalms requested review from rhliang March 18, 2026 23:19
Copy link
Copy Markdown
Contributor

@rhliang rhliang left a comment

Choose a reason for hiding this comment

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

Looks good, just the of -> oof thing (and one minor typo).

end

def self.merge_insertions_and_deletions_to_fix_oof_sequences(
def self.merge_insertions_and_deletions_to_fix_of_sequences(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oof was correct ("out of frame"). Maybe we could change this to out_of_frame to avoid confusion.

end

merge_insertions_and_deletions_to_fix_oof_sequences(standard, query)
merge_insertions_and_deletions_to_fix_of_sequences(standard, query)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Likewise here.

else # Choose the larger of the two middle gaps as center
center = gaps.size / 2 - 1 + max_gap_index(gaps[(gaps.size / 2 - 1), 2])
end
# Compress gaps to the left og the center gap
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Compress gaps to the left og the center gap
# Compress gaps to the left of the center gap

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

of -> oof

- Fix typos
- oof was not a typo
- Change oof to out_of_frame
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (163b157) to head (022c9ba).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #5   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          232       235    +3     
=========================================
+ Hits           232       235    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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