Skip to content

Commit 5b139d4

Browse files
committed
[ModelicaSystem] improve definition of getSolution
* allow different ways to define the path
1 parent 679bbd6 commit 5b139d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

OMPython/ModelicaSystem.py

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

10691069
self._simulated = True
10701070

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

0 commit comments

Comments
 (0)