Skip to content

Commit 7f15c99

Browse files
committed
[ModelicaSystemDoE] fix rebase fallout
1 parent ff3caf9 commit 7f15c99

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import subprocess
4646
import textwrap
4747
import threading
48-
from typing import Any, Optional
48+
from typing import Any, cast, Optional
4949
import warnings
5050
import xml.etree.ElementTree as ET
5151

@@ -1850,12 +1850,12 @@ def __init__(
18501850
fileName: Optional[str | os.PathLike | pathlib.Path] = None,
18511851
modelName: Optional[str] = None,
18521852
lmodel: Optional[list[str | tuple[str, str]]] = None,
1853-
commandLineOptions: Optional[str] = None,
1853+
commandLineOptions: Optional[list[str]] = None,
18541854
variableFilter: Optional[str] = None,
18551855
customBuildDirectory: Optional[str | os.PathLike | pathlib.Path] = None,
18561856
omhome: Optional[str] = None,
18571857

1858-
simargs: Optional[dict[str, Optional[str | dict[str, str]]]] = None,
1858+
simargs: Optional[dict[str, Optional[str | dict[str, str] | numbers.Number]]] = None,
18591859
timeout: Optional[int] = None,
18601860

18611861
resultpath: Optional[pathlib.Path] = None,
@@ -1959,7 +1959,7 @@ def prepare(self) -> int:
19591959
for idx_pc_simple, pc_simple in enumerate(param_simple_combinations):
19601960
sim_param_simple = {}
19611961
for idx_simple, pk_simple in enumerate(param_simple.keys()):
1962-
sim_param_simple[pk_simple] = pc_simple[idx_simple]
1962+
sim_param_simple[pk_simple] = cast(Any, pc_simple[idx_simple])
19631963

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

0 commit comments

Comments
 (0)