Skip to content

Commit 75bfd36

Browse files
committed
[ModelicaSystemDoE] use session() instead of _mod._getconn
1 parent 3ac0f5c commit 75bfd36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ def worker(worker_id, task_queue):
21042104
logger.info(f"[Worker {worker_id}] Performing task: {resultpath.name}")
21052105

21062106
try:
2107-
returncode = self._mod._getconn.run_model_executable(cmd_run_data=cmd_definition)
2107+
returncode = self.session().run_model_executable(cmd_run_data=cmd_definition)
21082108
logger.info(f"[Worker {worker_id}] Simulation {resultpath.name} "
21092109
f"finished with return code: {returncode}")
21102110
except ModelicaSystemError as ex:

0 commit comments

Comments
 (0)