|
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 |
|
@@ -1818,12 +1818,12 @@ def __init__( |
1818 | 1818 | fileName: Optional[str | os.PathLike | pathlib.Path] = None, |
1819 | 1819 | modelName: Optional[str] = None, |
1820 | 1820 | lmodel: Optional[list[str | tuple[str, str]]] = None, |
1821 | | - commandLineOptions: Optional[str] = None, |
| 1821 | + commandLineOptions: Optional[list[str]] = None, |
1822 | 1822 | variableFilter: Optional[str] = None, |
1823 | 1823 | customBuildDirectory: Optional[str | os.PathLike | pathlib.Path] = None, |
1824 | 1824 | omhome: Optional[str] = None, |
1825 | 1825 |
|
1826 | | - simargs: Optional[dict[str, Optional[str | dict[str, str]]]] = None, |
| 1826 | + simargs: Optional[dict[str, Optional[str | dict[str, str] | numbers.Number]]] = None, |
1827 | 1827 | timeout: Optional[int] = None, |
1828 | 1828 |
|
1829 | 1829 | resultpath: Optional[pathlib.Path] = None, |
@@ -1927,7 +1927,7 @@ def prepare(self) -> int: |
1927 | 1927 | for idx_pc_simple, pc_simple in enumerate(param_simple_combinations): |
1928 | 1928 | sim_param_simple = {} |
1929 | 1929 | for idx_simple, pk_simple in enumerate(param_simple.keys()): |
1930 | | - sim_param_simple[pk_simple] = pc_simple[idx_simple] |
| 1930 | + sim_param_simple[pk_simple] = cast(Any, pc_simple[idx_simple]) |
1931 | 1931 |
|
1932 | 1932 | resfilename = f"DOE_{idx_pc_structure:09d}_{idx_pc_simple:09d}.mat" |
1933 | 1933 | logger.info(f"use result file {repr(resfilename)} " |
|
0 commit comments