Skip to content

Commit 468a095

Browse files
committed
[ModelicaSystemDoE] fix rebase fallout
1 parent ba930d6 commit 468a095

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

@@ -1866,12 +1866,12 @@ def __init__(
18661866
fileName: Optional[str | os.PathLike | pathlib.Path] = None,
18671867
modelName: Optional[str] = None,
18681868
lmodel: Optional[list[str | tuple[str, str]]] = None,
1869-
commandLineOptions: Optional[str] = None,
1869+
commandLineOptions: Optional[list[str]] = None,
18701870
variableFilter: Optional[str] = None,
18711871
customBuildDirectory: Optional[str | os.PathLike | pathlib.Path] = None,
18721872
omhome: Optional[str] = None,
18731873

1874-
simargs: Optional[dict[str, Optional[str | dict[str, str]]]] = None,
1874+
simargs: Optional[dict[str, Optional[str | dict[str, str] | numbers.Number]]] = None,
18751875
timeout: Optional[int] = None,
18761876

18771877
resultpath: Optional[pathlib.Path] = None,
@@ -1975,7 +1975,7 @@ def prepare(self) -> int:
19751975
for idx_pc_simple, pc_simple in enumerate(param_simple_combinations):
19761976
sim_param_simple = {}
19771977
for idx_simple, pk_simple in enumerate(param_simple.keys()):
1978-
sim_param_simple[pk_simple] = pc_simple[idx_simple]
1978+
sim_param_simple[pk_simple] = cast(Any, pc_simple[idx_simple])
19791979

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

0 commit comments

Comments
 (0)