Skip to content

Constraint removal by display name can remove the wrong parameter's constraint #328

Closed

Description

@rozyczko

Source: EasyReflectometryApp/Backends/Py/sample.py:916-944 — DEEP_ANALYSIS.md §5 item 17 (and §3.3)

removeConstraintByIndex resolves the parameter to un-constrain by display name via _find_parameter_object_by_name, including a regex strip of M\d+ prefixes (line 969). Two parameters with the same display name (two models with same layer names — entirely plausible) resolve to the first match, so the wrong constraint can be removed.

Fix: Carry unique_name through to QML and key constraint removal by unique_name instead of display name.

Activity

  1. added
    [scope] bug
    [priority] high
    on Jun 17, 2026
  2. added a commit that references this issue on Jun 18, 2026
  3. added a commit that references this issue on Jul 15, 2026
  4. added a commit that references this issue on Oct 19, 2026
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