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)
Change History (7)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Sorry for my ignorance but I don't see any full name in the example. See the screenshot.
by , 8 years ago
Attachment: | Untitled-1.png added |
---|
comment:3 by , 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
.
by , 8 years ago
Attachment: | PowerWorld.png added |
---|
comment:5 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
@anonym: Thank you for bringing this up. I always wished this behavior, but didn't know it was specified!