Opened 5 years ago

Last modified 5 years ago

#5395 new defect

OMEdit generates invalid displayUnit modifiers for arrays of parameters

Reported by: casella Owned by: adeas31
Priority: blocker Milestone: 2.0.0
Component: OMEdit Version:
Keywords: Cc:

Description

Please check the attached example package. System model S contains one instance m of model M. Parameters were input using the parameter windows, and the unit was changed using the drop down menu. Unfortunately, the generated code misses the each prefix, so it cannot be run with the new frontend.

Please make sure that in case the parameter is an array, the each modifier is added to the displayUnit modifiers.

Attachments (1)

TestEachDisplayUnit.mo (524 bytes) - added by casella 5 years ago.

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by casella

comment:1 Changed 5 years ago by casella

  • Priority changed from critical to blocker

This is not really a major issue, but I guess it's easy to fix, and we should try to avoid generating code that won't be read by the new front-end in 2.0.0, so I'll make it a blocker.

comment:2 Changed 5 years ago by casella

@adeas31, can you please take care of this?

comment:3 Changed 5 years ago by adeas31

With the current API it is not possible to set the each prefix. I have opened a new ticket about it. Once we have the API support then I will fix OMEdit accordingly.

comment:4 Changed 5 years ago by casella

See #5489

comment:5 Changed 5 years ago by adeas31

  • Milestone changed from 1.14.0 to 2.0.0
Note: See TracTickets for help on using tickets.