Opened 6 years ago

Last modified 6 years ago

#5395 new defect

OMEdit generates invalid displayUnit modifiers for arrays of parameters

Reported by: Francesco Casella Owned by: Adeel Asghar
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 Francesco Casella 6 years ago.

Download all attachments as: .zip

Change History (6)

by Francesco Casella, 6 years ago

Attachment: TestEachDisplayUnit.mo added

comment:1 by Francesco Casella, 6 years ago

Priority: criticalblocker

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 by Francesco Casella, 6 years ago

@adeas31, can you please take care of this?

comment:3 by Adeel Asghar, 6 years ago

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 by Francesco Casella, 6 years ago

See #5489

comment:5 by Adeel Asghar, 6 years ago

Milestone: 1.14.02.0.0
Note: See TracTickets for help on using tickets.