Skip to content

Commit f18be10

Browse files
committed
Handle unsupported FMI versions
fixes #46
1 parent 1ad2706 commit f18be10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modelica_fmi/src/modelica_fmi/import_fmu_to_modelica.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def import_fmu_to_modelica(
5151

5252
model_description = read_model_description(fmu_path)
5353

54+
if model_description.fmiVersion == "1.0":
55+
raise FMUImportError(f"FMI 1.0 is not supported.")
56+
5457
if (
5558
model_description.defaultExperiment is not None
5659
and model_description.defaultExperiment.stepSize is not None

0 commit comments

Comments
 (0)