Skip to content

Gui tutorials - #402

Open
rozyczko wants to merge 9 commits into
ui_fixes_dec26from
gui_tutorials
Open

rozyczko wants to merge 9 commits into
ui_fixes_dec26from
gui_tutorials

Conversation

@rozyczko

Copy link
Copy Markdown
Member

Interactive Tutorials and Documentation:

  • Added support for interactive tutorials, including a mock backend (Tutorial.qml) and integration into the backend property map, allowing step-by-step guidance within the app. Tutorials can be started, stopped, and navigated, and their state is tracked.

Instrumental Parameters and Model Handling:

  • The Instrumental parameters section on the Experiment page now shows and edits the scale, background, and resolution for the selected experiment's model, rather than the model selected on the Sample page. This ensures correct parameter display when working with multiple contrasts.

Magnetic Layers in Repeating Multilayers:

  • Prevented repeating a multilayer that contains magnetic layers, raising a clear error if attempted, since this configuration is not supported by the underlying calculation engine (refl1d).

Backend and Mock Improvements:

  • Added fitCancelled property to both Python and mock backends to distinguish between user-cancelled and failed fits, and improved error messages for cancelled sampling runs.
  • Extended backend interfaces with slots to set parameter values and fit state by alias, supporting tutorial "Show me" actions.

Other Fixes and Enhancements:

  • The Bayesian diagnostics now correctly report the number of chains, clarifying the population/chains relationship.
  • Improved error handling in the mock backend for loading non-existent example projects.
  • Added missing import of numpy in the fitting backend.

rozyczko and others added 9 commits November 26, 2026 20:27
The Ubuntu CI jobs time out in the simple fitting tutorial, but pytest shortened the
reported dict before the step that failed. The test now reports each stuck step in full
(state, message, Show me error, the panel's note) with the panel's warnings, and the
harness no longer waits forever for a control that is never framed: it reports it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Ubuntu jobs stop on the simple fitting tutorial's minimizer step after a fit ended
without completing it. The record now has what its condition read (minimizer, reduced
chi2, success), the fit outcomes counted in the step and the Show me error on its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the Ubuntu CI jobs LMFit_leastsq from 200 A ended in another minimum (reduced chi2
6.74, the step asks for < 5). 200 A is on the edge of the right basin: with the other
free parameters nudged by 0.5-2 % after the first fit it missed in 11 of 30 runs, from
230 A in none. The step text now names the minimiser that does not converge from there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rozyczko rozyczko added [scope] enhancement Adds/improves features (major.MINOR.patch) video-tutorials [priority] high Should be prioritized soon labels Nov 28, 2026

This branch has not been deployed

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

Labels

[priority] high Should be prioritized soon [scope] enhancement Adds/improves features (major.MINOR.patch) video-tutorials

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant