1717import numpy as np
1818
1919from OMPython .model_execution import (
20- ModelExecutionCmd ,
20+ ModelExecutionConfig ,
2121)
2222from OMPython .om_session_abc import (
2323 OMPathABC ,
@@ -189,7 +189,7 @@ def check_model_executable(self):
189189 Check if the model executable is working
190190 """
191191 # check if the executable exists ...
192- om_cmd = ModelExecutionCmd (
192+ om_cmd = ModelExecutionConfig (
193193 runpath = self .getWorkDirectory (),
194194 cmd_local = self ._session .model_execution_local ,
195195 cmd_windows = self ._session .model_execution_windows ,
@@ -579,7 +579,7 @@ def _parse_om_version(version: str) -> tuple[int, int, int]:
579579
580580 def _process_override_data (
581581 self ,
582- om_cmd : ModelExecutionCmd ,
582+ om_cmd : ModelExecutionConfig ,
583583 override_file : OMPathABC ,
584584 override_var : dict [str , str ],
585585 override_sim : dict [str , str ],
@@ -619,7 +619,7 @@ def simulate_cmd(
619619 result_file : OMPathABC ,
620620 simflags : Optional [str ] = None ,
621621 simargs : Optional [dict [str , Optional [str | dict [str , Any ] | numbers .Number ]]] = None ,
622- ) -> ModelExecutionCmd :
622+ ) -> ModelExecutionConfig :
623623 """
624624 This method prepares the simulates model according to the simulation options. It returns an instance of
625625 ModelicaSystemCmd which can be used to run the simulation.
@@ -641,7 +641,7 @@ def simulate_cmd(
641641 An instance if ModelicaSystemCmd to run the requested simulation.
642642 """
643643
644- om_cmd = ModelExecutionCmd (
644+ om_cmd = ModelExecutionConfig (
645645 runpath = self .getWorkDirectory (),
646646 cmd_local = self ._session .model_execution_local ,
647647 cmd_windows = self ._session .model_execution_windows ,
@@ -1134,7 +1134,7 @@ def linearize(
11341134 "use ModelicaSystemOMC() to build the model first"
11351135 )
11361136
1137- om_cmd = ModelExecutionCmd (
1137+ om_cmd = ModelExecutionConfig (
11381138 runpath = self .getWorkDirectory (),
11391139 cmd_local = self ._session .model_execution_local ,
11401140 cmd_windows = self ._session .model_execution_windows ,
0 commit comments