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 testing a bit with this package, it seems like units cannot be parsed.
I used the SysML model below
package 'My-Vehicle' {
private import SI::*;
private import ISQ::*;
part vehicle1 {
part engine {
part cylinder;
}
part frontAxleAssembly {
part frontAxle;
part frontWheelAssembly {
part wheel;
part tire : Tire {
attribute pressure = 270000.0 [Pa];
}
}
}
part rearAxleAssembly {
part rearAxle;
part rearWheelAssembly {
part wheel;
part tire : Tire {
attribute pressure = 320000.0 [Pa];
}
}
part differential : Differential;
}
}
}
Giving the output below. Besides the errors, the tree is also not correctly represented anymore. The part rearAxleAssembly@11_None should have vehicle1@3_None as a parent and thus be rearAxleAssembly@11_3 (like frontAxleAssembly). For the moment, this can be solved by making the attribute type a String (e.g. "32000.0 [Pa]".
When testing a bit with this package, it seems like units cannot be parsed.
I used the SysML model below
and parsed it with this Python code
Giving the output below. Besides the errors, the tree is also not correctly represented anymore. The part rearAxleAssembly@11_None should have vehicle1@3_None as a parent and thus be rearAxleAssembly@11_3 (like frontAxleAssembly). For the moment, this can be solved by making the attribute type a String (e.g. "32000.0 [Pa]".
The text was updated successfully, but these errors were encountered: