-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
[area] Parameters and DescriptorsAnything related to Parameters or DescriptorsAnything related to Parameters or Descriptors[priority] mediumNormal/default priorityNormal/default priority[scope] significantBreaking or major changes (MAJOR.minor.patch)Breaking or major changes (MAJOR.minor.patch)
Milestone
Description
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
Labels
[area] Parameters and DescriptorsAnything related to Parameters or DescriptorsAnything related to Parameters or Descriptors[priority] mediumNormal/default priorityNormal/default priority[scope] significantBreaking or major changes (MAJOR.minor.patch)Breaking or major changes (MAJOR.minor.patch)