Skip to content

Commit 6e7cc90

Browse files
committed
??? fix3
1 parent 2b4be1b commit 6e7cc90

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,5 +2666,8 @@ def _prepare_structure_parameters(
26662666
pc_structure: Tuple,
26672667
param_structure: dict[str, list[str] | list[int] | list[float]],
26682668
) -> dict[str, str | int | float]:
2669-
raise ModelicaSystemError(f"{self.__class__.__name__} can not handle structure parameters as it uses a "
2670-
"pre-compiled binary of model.")
2669+
if len(param_structure.keys()) > 0:
2670+
raise ModelicaSystemError(f"{self.__class__.__name__} can not handle structure parameters as it uses a "
2671+
"pre-compiled binary of model.")
2672+
2673+
return {}

0 commit comments

Comments
 (0)