You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dependency text falls back to the bare parameter name when the leader belongs to another model #366
Source:EasyReflectometryApp/Backends/Py/logic/parameters.py, _get_dependency_expression (L308 @ 518ab78), called with only the current model's paths (L414)
_get_dependency_expression names the parameter a row depends on by looking it up in paths, but paths holds only the object tree of the model the row is built under. When that parameter lives in another model (a tie between contrasts, see #363), paths.get(...) returns None and _get_parameter_display_data falls back to the bare param.name.
Example: M2's scale tied to M1's scale gets the dependency text scale instead of the display name M1's scale has in the table.
There is a second, smaller gap: even when the path is found, a per-layer parameter's text has no model prefix (Film thickness, not M1 Film thickness). The prefix is added only when the row itself is built.
Impact today: latent. As described in #365, the dependency text of ordinary rows isn't shown in the UI yet, and constraints made in the app use alias keys, so they don't reach this branch.
Fix: resolve the parameter's name across all models, not just the current one. For example, build the rows first, then fill in each dependency text from a unique_name → display_name map of the finished rows. That gives the same name, model prefix included, that the parameter has in the table. Best done together with #365.
A snapshot test written alongside a pending refactor of _from_parameters_to_list_of_dicts records the current output (row m2_scale); update it when this is fixed.
Activity
improved tooltips for dependent parameters #366
Fixes before 1.6 (#381)
changes required for core 3.0 to work (#367)
Release 1.6.0 (#383)
Release 1.6.0 (#383) (#384)