Skip to content

Parameter value setters report success after swallowing failures #313

Closed

Description

@rozyczko

Source: EasyReflectometryApp/Backends/Py/logic/parameters.py:155-189 — DEEP_ANALYSIS.md §5 item 2

set_current_parameter_value / set_current_parameter_min / set_current_parameter_max have two defects:

  1. float(new_value) is evaluated in the if condition outside the try, so a non-numeric value raises uncaught.
  2. When the inner assignment's ValueError is swallowed, the method still return True, telling the proxy a change happened (cache cleared, signals emitted) when nothing actually changed.

Impact: Data integrity — the UI reflects a value change that did not occur. The parameter table desynchronizes from the model.

Fix: Move the float() conversion inside the try; return False on failure so callers don't emit change signals.

Activity

  1. added
    [scope] bug
    [priority] high
    on Jun 17, 2026
  2. added a commit that references this issue on Jun 18, 2026
    6b7677f
  3. added a commit that references this issue on Jul 15, 2026
    16e1b45
  4. added 2 commits that reference this issue on Aug 3, 2026
    1418142
    9cd8256
  5. added a commit that references this issue on Oct 19, 2026
    99e460d
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

    [priority] high[scope] bug

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions