Opened 8 years ago

Closed 8 years ago

#4084 closed defect (fixed)

Wrong parameter display in OMEdit

Reported by: anonymous Owned by: Adeel Asghar
Priority: high Milestone: 1.11.0
Component: OMEdit Version:
Keywords: Cc:

Description

Modelica specification, in its sect. 18.6.5.5 reads:

%par replaced by the value of the parameter par. The intent is that
the text is easily readable, thus if par is of an enumeration type,
replace %par by the item name, not by the full name. 
[Example: if par="Modelica.Blocks.Types.Enumeration.Periodic", then
 %par should be displayed as "Periodic"]

On the contrary, OMEdit displays the full name. See for instance in PowerSystem library the appearance of "System" block in any example (e.g. Examples.PowerWorld.PowerWorld)

Attachments (2)

Untitled-1.png (86.2 KB ) - added by Adeel Asghar 8 years ago.
PowerWorld.png (91.4 KB ) - added by Rüdiger Franke 8 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Rüdiger Franke, 8 years ago

@anonym: Thank you for bringing this up. I always wished this behavior, but didn't know it was specified!

comment:2 by Adeel Asghar, 8 years ago

Sorry for my ignorance but I don't see any full name in the example. See the screenshot.

by Adeel Asghar, 8 years ago

Attachment: Untitled-1.png added

comment:3 by Rüdiger Franke, 8 years ago

You need to upgrade the PowerSystems library to >= 0.5. The string constants, like "tr", stemmed from a time when Modelica had no enumerations. Now its
PowerSystems.Types.Dynamics.FixedInitial.

Last edited 8 years ago by Rüdiger Franke (previous) (diff)

by Rüdiger Franke, 8 years ago

Attachment: PowerWorld.png added

comment:4 by Rüdiger Franke, 8 years ago

See PR40.

comment:5 by Rüdiger Franke, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.