Skip to content

Commit 9a42128

Browse files
committed
Merge branch 'ModelicaSystem_simulate_cmd' into OMCSession_OMPathABC
2 parents 571ce75 + b337e8c commit 9a42128

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def parse_om_version(version: str) -> tuple[int, int, int]:
830830
major, minor, patch = map(int, match.groups())
831831
return major, minor, patch
832832

833-
def simulate_cmd(
833+
def _simulate_cmd(
834834
self,
835835
result_file: OMPathABC,
836836
simflags: Optional[str] = None,
@@ -957,7 +957,7 @@ def simulate(
957957
if not isinstance(self._result_file, OMPathABC):
958958
raise ModelicaSystemError(f"Invalid result file path: {self._result_file} - must be an OMCPath object!")
959959

960-
om_cmd = self.simulate_cmd(
960+
om_cmd = self._simulate_cmd(
961961
result_file=self._result_file,
962962
simflags=simflags,
963963
simargs=simargs,
@@ -2276,7 +2276,7 @@ def prepare(self) -> int:
22762276
)
22772277

22782278
self._mod.setParameters(sim_param_non_structural)
2279-
mscmd = self._mod.simulate_cmd(
2279+
mscmd = self._mod._simulate_cmd(
22802280
result_file=resultfile,
22812281
)
22822282
if self._simargs is not None:

0 commit comments

Comments
 (0)