Skip to content

Commit db6702a

Browse files
committed
[ModelicaSystemDoE] fix rebase fallout
1 parent d141128 commit db6702a

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
@@ -42,7 +42,7 @@
4242
import queue
4343
import textwrap
4444
import threading
45-
from typing import Any, Optional
45+
from typing import Any, cast, Optional
4646
import warnings
4747
import xml.etree.ElementTree as ET
4848

@@ -1829,12 +1829,12 @@ def __init__(
18291829
fileName: Optional[str | os.PathLike | pathlib.Path] = None,
18301830
modelName: Optional[str] = None,
18311831
lmodel: Optional[list[str | tuple[str, str]]] = None,
1832-
commandLineOptions: Optional[str] = None,
1832+
commandLineOptions: Optional[list[str]] = None,
18331833
variableFilter: Optional[str] = None,
18341834
customBuildDirectory: Optional[str | os.PathLike | pathlib.Path] = None,
18351835
omhome: Optional[str] = None,
18361836

1837-
simargs: Optional[dict[str, Optional[str | dict[str, str]]]] = None,
1837+
simargs: Optional[dict[str, Optional[str | dict[str, str] | numbers.Number]]] = None,
18381838
timeout: Optional[int] = None,
18391839

18401840
resultpath: Optional[pathlib.Path] = None,
@@ -1938,7 +1938,7 @@ def prepare(self) -> int:
19381938
for idx_pc_simple, pc_simple in enumerate(param_simple_combinations):
19391939
sim_param_simple = {}
19401940
for idx_simple, pk_simple in enumerate(param_simple.keys()):
1941-
sim_param_simple[pk_simple] = pc_simple[idx_simple]
1941+
sim_param_simple[pk_simple] = cast(Any, pc_simple[idx_simple])
19421942

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

0 commit comments

Comments
 (0)