Skip to content

Commit c129c2f

Browse files
committed
[ModelicaSystem] improve definition of getSolution
* allow different ways to define the path
1 parent 585ae77 commit c129c2f

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
@@ -1074,7 +1074,11 @@ def simulate(
10741074

10751075
self._simulated = True
10761076

1077-
def getSolutions(self, varList: Optional[str | list[str]] = None, resultfile: Optional[str] = None) -> tuple[str] | np.ndarray:
1077+
def getSolutions(
1078+
self,
1079+
varList: Optional[str | list[str]] = None,
1080+
resultfile: Optional[str | os.PathLike] = None,
1081+
) -> tuple[str] | np.ndarray:
10781082
"""Extract simulation results from a result data file.
10791083
10801084
Args:

0 commit comments

Comments
 (0)