Skip to content

Bayesian hyper-parameter setters raise into Qt slots, giving no UI feedback #327

Closed

Description

@rozyczko

Source: EasyReflectometryApp/Backends/Py/logic/bayesian.py setters (e.g. line 42) via analysis.py:206-245 — DEEP_ANALYSIS.md §5 item 16 (and §3.2)

The Bayesian hyper-parameter setters (setBayesianSamples, etc.) forward to Bayesian property setters that raise ValueError on invalid input. A slot raising into the Qt event loop prints a stderr traceback and leaves minimizerChanged unemitted, so QML gets no feedback on invalid spinbox input.

Fix: Validate-and-clamp (or emit an error signal) instead of raising from the slot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [priority] medium[scope] bugbayesian-analysis

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions