Closed dhblum closed 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).
estimationpy.fmu_utils.model.__set_in_out_var__()
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.
fmu.get_version()
Closed by https://github.com/lbl-srg/EstimationPy/pull/10.
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.