Skip to content

Seed the Prepare stage's windows from the marginal-check trust regions #30

Open

Description

@chrisbrahms

What is missing

#29 gives the marginal-check stage two trust regions (trace and spectrum) and the Prepare stage two windows (λm for the trace, λs for the spectrum). The Prepare windows are seeded from the loaded data's extents, not from the trust regions, even though the marginal-check stage comes first in the workflow. A user who has set the trust regions sets the same ranges again in Prepare.

To do

  • When a trust region has been set in the marginal-check stage, seed the matching Prepare window from it on entering Prepare, clipped to the data's extent. Leave a window the user has already changed alone.
  • GUI test through qtbot: set both trust regions, enter Prepare, and check the seeded windows; then change a window, revisit, and check that it is kept.

Done when

The test above passes, and a session saved and reloaded keeps the windows the user set.

Follow-up to #29, part of the plan in #23. Drafted with Claude Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions