Skip to content

Replace constraints with dependent Parameters #34

@damskii9992

Description

@damskii9992

Discussed in #10

Originally posted by damskii9992 June 7, 2024

Requirements

  • When an independent parameter value is changed, it should update the values of all the parameters which depend directly on it. When doing this update, signals should also be send to the GUI frontend to reflect this change.
  • Making a parameter dependent should be easy and user-friendly, both when generated and when changed by the setter, by allowing direct expressions such as: 'value=a+2*b' in the value field
  • A dependent parameter should also be easy to change back into an independent parameter
  • Dependent parameters should not be included in the fitting procedure
  • [Optional] It should be possible to visualize a dependency tree to get an overview of all parameter dependencies

Implementation

  • '_is_independent' boolean variable, for checks
  • 'list_of_dependents' list variable with UIDs of parameters that depend on the parameter
  • '_update' method, to be called on dependent parameters when their independent dependency is changed
  • Logic to ensure no broken, cyclic or secondary (for now) dependencies

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions