Skip to content

Commit bbf9759

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

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
@@ -1132,7 +1132,11 @@ def simulate(
11321132

11331133
self._simulated = True
11341134

1135-
def getSolutions(self, varList: Optional[str | list[str]] = None, resultfile: Optional[str] = None) -> tuple[str] | np.ndarray:
1135+
def getSolutions(
1136+
self,
1137+
varList: Optional[str | list[str]] = None,
1138+
resultfile: Optional[str | os.PathLike] = None,
1139+
) -> tuple[str] | np.ndarray:
11361140
"""Extract simulation results from a result data file.
11371141
11381142
Args:

0 commit comments

Comments
 (0)