You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When translating Modelica to JSON using commit 648b390, some expressions are not properly parsed and the original expressions are lost.
For example, translating Buildings/Controls/OBC/ASHRAE/G36/AHUs/SingleZone/VAV/Controller.mo, we get:
Buildings.Controls.OBC.CDL.Interfaces.BooleanOutput y1RetFan if (buiPreCon
== Buildings.Controls.OBC.ASHRAE.G36.Types.PressureControl.ReturnFanMeasuredAir
or buiPreCon == Buildings.Controls.OBC.ASHRAE.G36.Types.PressureControl.ReturnFanDp)
Another example: with Buildings/Controls/OBC/ASHRAE/G36/AHUs/SingleZone/VAV/Controller.mo, we get:
Buildings.Controls.OBC.ASHRAE.G36.AHUs.MultiZone.VAV.Economizers.Subsequences.Modulations.ReturnFan
modRet if (buiPreCon == Buildings.Controls.OBC.ASHRAE.G36.Types.PressureControl.ReturnFanMeasuredAir
or buiPreCon == Buildings.Controls.OBC.ASHRAE.G36.Types.PressureControl.ReturnFanDp)
The text was updated successfully, but these errors were encountered:
This issue is probably related to the parentheses that are used around logical expressions (not, or, and, etc.).
See the attached expression.json that results from parsing the following declarations.
parameterInteger notexp =ifnot a < b then1else2;
parameterInteger andnotexp =if a < b andnot a < b then1else2;
parameterInteger notexppar =ifnot (a < b) then1else2;
parameterInteger andnotexppar =if (a < b) andnot (a < b) then1else2;
When translating Modelica to JSON using commit 648b390, some expressions are not properly parsed and the original expressions are lost.
For example, translating
Buildings/Controls/OBC/ASHRAE/G36/AHUs/SingleZone/VAV/Controller.mo
, we get:whereas the original declaration is:
Another example: with
Buildings/Controls/OBC/ASHRAE/G36/AHUs/SingleZone/VAV/Controller.mo
, we get:whereas the original declaration is:
The text was updated successfully, but these errors were encountered: