dnv-opensource / component-model

Python package to build component models as FMUs following DNV-RP-0513
MIT License
2 stars 2 forks source link

Confusing error message when providing an invalid combination of causality and variability #10

Closed THEvang closed 1 week ago

THEvang commented 1 week ago

The following error message is generated when providing an invalid combination of causality and variability. I interpreted this as a type cast failure from string to the FMU variability enum when it actually means that the variability and causality is invalid according to the FMI standard.

The error message should reflect that it is the invalid combination of causality and variability that is the issue.

image

THEvang commented 1 week ago

Cause by a typo i continous. Correct typing provides a good error message