Skip to content

Commit 6a17c1a

Browse files
committed
[ModelicaSystem.getSolutions] accept pathlib.Path as input for resultfile
1 parent 3eb2952 commit 6a17c1a

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
@@ -1084,7 +1084,11 @@ def simulate(
10841084

10851085
self._simulated = True
10861086

1087-
def getSolutions(self, varList: Optional[str | list[str]] = None, resultfile: Optional[str] = None) -> tuple[str] | np.ndarray:
1087+
def getSolutions(
1088+
self,
1089+
varList: Optional[str | list[str]] = None,
1090+
resultfile: Optional[str| pathlib.Path] = None,
1091+
) -> tuple[str] | np.ndarray:
10881092
"""Extract simulation results from a result data file.
10891093
10901094
Args:

0 commit comments

Comments
 (0)