Skip to content

Commit 4781ac0

Browse files
committed
[ModelicaSystemDoE] fix rebase fallout
1 parent 08cf292 commit 4781ac0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

OMPython/ModelicaSystem.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
import tempfile
4848
import textwrap
4949
import threading
50-
from typing import Any, Optional
50+
from typing import Any, cast, Optional
5151
import warnings
5252
import xml.etree.ElementTree as ET
5353

@@ -1809,12 +1809,12 @@ def __init__(
18091809
fileName: Optional[str | os.PathLike | pathlib.Path] = None,
18101810
modelName: Optional[str] = None,
18111811
lmodel: Optional[list[str | tuple[str, str]]] = None,
1812-
commandLineOptions: Optional[str] = None,
1812+
commandLineOptions: Optional[list[str]] = None,
18131813
variableFilter: Optional[str] = None,
18141814
customBuildDirectory: Optional[str | os.PathLike | pathlib.Path] = None,
18151815
omhome: Optional[str] = None,
18161816

1817-
simargs: Optional[dict[str, Optional[str | dict[str, str]]]] = None,
1817+
simargs: Optional[dict[str, Optional[str | dict[str, str] | numbers.Number]]] = None,
18181818
timeout: Optional[int] = None,
18191819

18201820
resultpath: Optional[pathlib.Path] = None,
@@ -1918,7 +1918,7 @@ def prepare(self) -> int:
19181918
for idx_pc_simple, pc_simple in enumerate(param_simple_combinations):
19191919
sim_param_simple = {}
19201920
for idx_simple, pk_simple in enumerate(param_simple.keys()):
1921-
sim_param_simple[pk_simple] = pc_simple[idx_simple]
1921+
sim_param_simple[pk_simple] = cast(Any, pc_simple[idx_simple])
19221922

19231923
resfilename = f"DOE_{idx_pc_structure:09d}_{idx_pc_simple:09d}.mat"
19241924
logger.info(f"use result file {repr(resfilename)} "

0 commit comments

Comments
 (0)