|
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 |
|
@@ -1866,12 +1866,12 @@ def __init__( |
1866 | 1866 | fileName: Optional[str | os.PathLike | pathlib.Path] = None, |
1867 | 1867 | modelName: Optional[str] = None, |
1868 | 1868 | lmodel: Optional[list[str | tuple[str, str]]] = None, |
1869 | | - commandLineOptions: Optional[str] = None, |
| 1869 | + commandLineOptions: Optional[list[str]] = None, |
1870 | 1870 | variableFilter: Optional[str] = None, |
1871 | 1871 | customBuildDirectory: Optional[str | os.PathLike | pathlib.Path] = None, |
1872 | 1872 | omhome: Optional[str] = None, |
1873 | 1873 |
|
1874 | | - simargs: Optional[dict[str, Optional[str | dict[str, str]]]] = None, |
| 1874 | + simargs: Optional[dict[str, Optional[str | dict[str, str] | numbers.Number]]] = None, |
1875 | 1875 | timeout: Optional[int] = None, |
1876 | 1876 |
|
1877 | 1877 | resultpath: Optional[pathlib.Path] = None, |
@@ -1975,7 +1975,7 @@ def prepare(self) -> int: |
1975 | 1975 | for idx_pc_simple, pc_simple in enumerate(param_simple_combinations): |
1976 | 1976 | sim_param_simple = {} |
1977 | 1977 | 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]) |
1979 | 1979 |
|
1980 | 1980 | resfilename = f"DOE_{idx_pc_structure:09d}_{idx_pc_simple:09d}.mat" |
1981 | 1981 | logger.info(f"use result file {repr(resfilename)} " |
|
0 commit comments