lbl-srg / EstimationPy

Python package for state and parameter estimation
Other
33 stars 15 forks source link

Update for use with FMI 2.0 #9

Closed dhblum closed 4 years ago

dhblum commented 4 years ago

This issue is to update the code to be compatible with FMI 2.0. In particular, the causality integers detected by PyFMI are different for 1.0 and 2.0, as used in estimationpy.fmu_utils.model.__set_in_out_var__() (https://github.com/lbl-srg/EstimationPy/blob/master/estimationpy/fmu_utils/model.py#L1292).

For FMI 1.0: Input=0, Output=1 For FMI 2.0: Input=2, Output=3

Can use fmu.get_version() (returns "1.0" or "2.0") to determine fmu version.

dhblum commented 4 years ago

Closed by https://github.com/lbl-srg/EstimationPy/pull/10.