Skip to content

Commit f3de972

Browse files
committed
[ModelicaSystem] improve definition of getSolution
* allow different ways to define the path
1 parent 7c00e88 commit f3de972

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,11 @@ def simulate(
10701070

10711071
self._simulated = True
10721072

1073-
def getSolutions(self, varList: Optional[str | list[str]] = None, resultfile: Optional[str] = None) -> tuple[str] | np.ndarray:
1073+
def getSolutions(
1074+
self,
1075+
varList: Optional[str | list[str]] = None,
1076+
resultfile: Optional[str | os.PathLike] = None,
1077+
) -> tuple[str] | np.ndarray:
10741078
"""Extract simulation results from a result data file.
10751079
10761080
Args:

0 commit comments

Comments
 (0)