|
7 | 7 | import os |
8 | 8 | import pathlib |
9 | 9 | import platform |
10 | | -from typing import Any, Optional |
| 10 | +from typing import Optional |
11 | 11 |
|
12 | 12 | import numpy as np |
13 | 13 |
|
@@ -67,54 +67,6 @@ def __init__( |
67 | 67 | def setCommandLineOptions(self, commandLineOptions: str): |
68 | 68 | super().set_command_line_options(command_line_option=commandLineOptions) |
69 | 69 |
|
70 | | - def setContinuous( # type: ignore[override] |
71 | | - self, |
72 | | - cvals: str | list[str] | dict[str, Any], |
73 | | - ) -> bool: |
74 | | - if isinstance(cvals, dict): |
75 | | - return super().setContinuous(**cvals) |
76 | | - raise ModelicaSystemError("Only dict input supported for setContinuous()") |
77 | | - |
78 | | - def setParameters( # type: ignore[override] |
79 | | - self, |
80 | | - pvals: str | list[str] | dict[str, Any], |
81 | | - ) -> bool: |
82 | | - if isinstance(pvals, dict): |
83 | | - return super().setParameters(**pvals) |
84 | | - raise ModelicaSystemError("Only dict input supported for setParameters()") |
85 | | - |
86 | | - def setOptimizationOptions( # type: ignore[override] |
87 | | - self, |
88 | | - optimizationOptions: str | list[str] | dict[str, Any], |
89 | | - ) -> bool: |
90 | | - if isinstance(optimizationOptions, dict): |
91 | | - return super().setOptimizationOptions(**optimizationOptions) |
92 | | - raise ModelicaSystemError("Only dict input supported for setOptimizationOptions()") |
93 | | - |
94 | | - def setInputs( # type: ignore[override] |
95 | | - self, |
96 | | - name: str | list[str] | dict[str, Any], |
97 | | - ) -> bool: |
98 | | - if isinstance(name, dict): |
99 | | - return super().setInputs(**name) |
100 | | - raise ModelicaSystemError("Only dict input supported for setInputs()") |
101 | | - |
102 | | - def setSimulationOptions( # type: ignore[override] |
103 | | - self, |
104 | | - simOptions: str | list[str] | dict[str, Any], |
105 | | - ) -> bool: |
106 | | - if isinstance(simOptions, dict): |
107 | | - return super().setSimulationOptions(**simOptions) |
108 | | - raise ModelicaSystemError("Only dict input supported for setSimulationOptions()") |
109 | | - |
110 | | - def setLinearizationOptions( # type: ignore[override] |
111 | | - self, |
112 | | - linearizationOptions: str | list[str] | dict[str, Any], |
113 | | - ) -> bool: |
114 | | - if isinstance(linearizationOptions, dict): |
115 | | - return super().setLinearizationOptions(**linearizationOptions) |
116 | | - raise ModelicaSystemError("Only dict input supported for setLinearizationOptions()") |
117 | | - |
118 | 70 | def getContinuous( |
119 | 71 | self, |
120 | 72 | names: Optional[str | list[str]] = None, |
|
0 commit comments