Skip to content

fix(export): grey Apply white balance for Trichrome and Single-Shot Narrowband - #5

Closed
thetalkingdrum wants to merge 1 commit into
mainfrom
fix/narrowband-wb-export-gating
Closed

fix(export): grey Apply white balance for Trichrome and Single-Shot Narrowband#5
thetalkingdrum wants to merge 1 commit into
mainfrom
fix/narrowband-wb-export-gating

Conversation

@thetalkingdrum

Copy link
Copy Markdown
Owner

Summary

  • Apply white balance in Linear Output's Corrections block used to stay clickable for
    Trichrome triplets and Single-Shot Narrowband captures, even though baking the as-shot
    gains into either has no practical use: the gains correct a broadband scene, and a
    narrowband capture (three isolated exposures, or a narrowband-lit single shot) has none.
  • Added wb_bake_block_reason() in linear_output.py, checked from both the export
    sidebar (greys the checkbox with an explanatory tooltip) and _decode_linear itself
    (makes the bake inert even if a stale sticky preference has the box checked), so the
    two can't disagree — same pattern as the existing sensor-unmix unmix_block_reason.
  • Single-Shot Narrowband is detected from either of two independent sticky settings: the
    Narrowband toggle or a calibrated Single-Shot Narrowband sensor matrix, since a rig can
    have one set without the other.
  • Updated docs/USER_GUIDE.md / docs/PIPELINE.md, added unit + integration tests.

Test plan

  • uv run pytest tests/test_linear_output.py tests/test_linear_output_batch.py tests/test_export_settings_form.py
  • make lint / make format
  • Manual: drove the real desktop app (ExportSidebar via the actual set_linear_output signal chain) across an ordinary camera RAW, a Trichrome triplet, a Single-Shot Narrowband (toggle) and a Single-Shot Narrowband (sensor matrix only) config — Apply white balance stayed enabled only for the ordinary RAW, with the correct tooltip on each greyed case.
  • Manual: verified live in the running app on a real session.

…arrowband

The as-shot WB gains a camera records assume a broadband scene; a
narrowband capture (Trichrome's isolated exposures, or a Single-Shot
Narrowband rig) has no such scene, so baking them into Linear Output
has no practical use. wb_bake_block_reason() greys the checkbox for
both cases and makes the bake inert in _decode_linear even if a stale
sticky preference has it checked.
@thetalkingdrum

Copy link
Copy Markdown
Owner Author

Reopened against upstream: marcinz606#954

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