Skip to content

Expose 'Linear' row alignment in the GUI#42

Merged
jacobson30-bot merged 1 commit into
mainfrom
ui/expose-linear-row-align
Jun 15, 2026
Merged

Expose 'Linear' row alignment in the GUI#42
jacobson30-bot merged 1 commit into
mainfrom
ui/expose-linear-row-align

Conversation

@jacobson30-bot

Copy link
Copy Markdown
Contributor

What

The Definitions help documents three row-alignment methods (median / mean / linear), and the backend align_rows supports all three — but the GUI's Align rows dropdown only offered None/Median/Mean, so the documented linear option was unreachable (reported from the doc-vs-UI mismatch).

Adds Linear to:

  • the Align rows combo, its state/set_state index maps, and tooltip (probeflow/gui/processing.py)
  • the menu-bar mirror (probeflow/gui/dialogs/image_viewer_chrome_mixin.py)

The state→op pipeline already passes method through generically (gui_adapteralign_rows(method=...)), so linear works end to end with no backend change.

Verification

  • Round-trip + pipeline checked: combo shows [None, Median, Mean, Linear], set_state({'align_rows':'linear'}) selects it, state() returns linear, and apply_processing_state runs it.
  • New test_align_rows_exposes_linear_option; test_gui_processing_panel + test_viewer_window_menu green; ruff clean.

🤖 Generated with Claude Code

The backend align_rows supports median, mean, and linear (linear also removes a
straight slope within each row), and the Definitions help documents all three —
but the GUI's "Align rows" dropdown only offered None/Median/Mean, so the
documented 'linear' option was unreachable.

Add "Linear" to the Align rows control (probeflow/gui/processing.py: combo items,
state align_map, set_state reverse map, tooltip) and to the menu-bar mirror
(probeflow/gui/dialogs/image_viewer_chrome_mixin.py). The state→op pipeline
already passes the method through generically, so linear works end to end.

Test: test_align_rows_exposes_linear_option.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jacobson30-bot jacobson30-bot merged commit 05b70c8 into main Jun 15, 2026
3 checks passed
@jacobson30-bot jacobson30-bot deleted the ui/expose-linear-row-align branch June 15, 2026 12: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