|
42 | 42 | import queue |
43 | 43 | import textwrap |
44 | 44 | import threading |
45 | | -from typing import Any, Optional |
| 45 | +from typing import Any, cast, Optional |
46 | 46 | import warnings |
47 | 47 | import xml.etree.ElementTree as ET |
48 | 48 |
|
@@ -1829,12 +1829,12 @@ def __init__( |
1829 | 1829 | fileName: Optional[str | os.PathLike | pathlib.Path] = None, |
1830 | 1830 | modelName: Optional[str] = None, |
1831 | 1831 | lmodel: Optional[list[str | tuple[str, str]]] = None, |
1832 | | - commandLineOptions: Optional[str] = None, |
| 1832 | + commandLineOptions: Optional[list[str]] = None, |
1833 | 1833 | variableFilter: Optional[str] = None, |
1834 | 1834 | customBuildDirectory: Optional[str | os.PathLike | pathlib.Path] = None, |
1835 | 1835 | omhome: Optional[str] = None, |
1836 | 1836 |
|
1837 | | - simargs: Optional[dict[str, Optional[str | dict[str, str]]]] = None, |
| 1837 | + simargs: Optional[dict[str, Optional[str | dict[str, str] | numbers.Number]]] = None, |
1838 | 1838 | timeout: Optional[int] = None, |
1839 | 1839 |
|
1840 | 1840 | resultpath: Optional[pathlib.Path] = None, |
@@ -1938,7 +1938,7 @@ def prepare(self) -> int: |
1938 | 1938 | for idx_pc_simple, pc_simple in enumerate(param_simple_combinations): |
1939 | 1939 | sim_param_simple = {} |
1940 | 1940 | 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]) |
1942 | 1942 |
|
1943 | 1943 | resfilename = f"DOE_{idx_pc_structure:09d}_{idx_pc_simple:09d}.mat" |
1944 | 1944 | logger.info(f"use result file {repr(resfilename)} " |
|
0 commit comments