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)
Change History (6)
by , 6 years ago
Attachment: | TestEachDisplayUnit.mo added |
---|
comment:1 by , 6 years ago
Priority: | critical → blocker |
---|
comment:3 by , 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:5 by , 6 years ago
Milestone: | 1.14.0 → 2.0.0 |
---|
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.