|
45 | 45 | import subprocess |
46 | 46 | import textwrap |
47 | 47 | import threading |
48 | | -from typing import Any, Optional |
| 48 | +from typing import Any, cast, Optional |
49 | 49 | import warnings |
50 | 50 | import xml.etree.ElementTree as ET |
51 | 51 |
|
@@ -1850,12 +1850,12 @@ def __init__( |
1850 | 1850 | fileName: Optional[str | os.PathLike | pathlib.Path] = None, |
1851 | 1851 | modelName: Optional[str] = None, |
1852 | 1852 | lmodel: Optional[list[str | tuple[str, str]]] = None, |
1853 | | - commandLineOptions: Optional[str] = None, |
| 1853 | + commandLineOptions: Optional[list[str]] = None, |
1854 | 1854 | variableFilter: Optional[str] = None, |
1855 | 1855 | customBuildDirectory: Optional[str | os.PathLike | pathlib.Path] = None, |
1856 | 1856 | omhome: Optional[str] = None, |
1857 | 1857 |
|
1858 | | - simargs: Optional[dict[str, Optional[str | dict[str, str]]]] = None, |
| 1858 | + simargs: Optional[dict[str, Optional[str | dict[str, str] | numbers.Number]]] = None, |
1859 | 1859 | timeout: Optional[int] = None, |
1860 | 1860 |
|
1861 | 1861 | resultpath: Optional[pathlib.Path] = None, |
@@ -1959,7 +1959,7 @@ def prepare(self) -> int: |
1959 | 1959 | for idx_pc_simple, pc_simple in enumerate(param_simple_combinations): |
1960 | 1960 | sim_param_simple = {} |
1961 | 1961 | 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]) |
1963 | 1963 |
|
1964 | 1964 | resfilename = f"DOE_{idx_pc_structure:09d}_{idx_pc_simple:09d}.mat" |
1965 | 1965 | logger.info(f"use result file {repr(resfilename)} " |
|
0 commit comments