Skip to content

ModelicaMixin: Fix reading of ca.DM nominals

Tjerk Vreeken requested to merge modelica-fix-nominal-DM into master

If the nominal from the model was a ca.DM instance, it would raise an exception when calling np.isnan on it. With .is_constant() being True for ca.DM objects, we can move the isnan check down, and avoid casting to float twice.

Merge request reports