Skip to content

Incorrect order of inherited parameters in the configuration panel #421

@AntoineGautier

Description

@AntoineGautier

Parameters which are declared in a base class and which are not modified in derived classes appear after parameters which are declared in derived classes.
This is the opposite of what Modelica tools do.
The reason is that

Note that the rationale behind iterating over treeList is to select the latest parameter modification in the inheritance tree, see https://github.com/lbl-srg/ctrl-flow-dev/blob/main/client/src/interpreter/interpreter.ts#L494-L501
Therefore, simply changing the order of treeList is probably not the solution to this issue as it may result in missing parameter overrides.

The current production version doesn't exhibit this issue because the VAV templates don't have exposed parameter declared in base classes and not modified in derived classes.

Metadata

Metadata

Labels

Top PriorityTop of the Priority ListbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions