Skip to content
Snippets Groups Projects
Commit 52af49da authored by Mireille Schneider's avatar Mireille Schneider
Browse files

Fixed M3 implementation to not depend on presence of standard Chease iWrap...

Fixed M3 implementation to not depend on presence of standard Chease iWrap actor; replaces run_chease_iwrap_reflist.py by [200~run_chease_iwrap_choices.py in coupling.ymmsl
parent 65912715
No related branches found
No related tags found
Loading
......@@ -29,6 +29,6 @@ resources:
implementations:
workflow:
executable: python
args: ../../../../run_chease_iwrap_reflist.py
args: ../../../../run_chease_iwrap_choices.py
chease:
executable: ../../../../../chease_m3/bin/chease.exe
......@@ -65,21 +65,22 @@ def run_chease_iwrap_choices() -> None:
os.chdir(output_tmp_folder)
# CHEASE INITIALISATION
from chease.actor import chease as chease_actor
chease = chease_actor()
code_parameters = chease.get_code_parameters()
code_parameters.parameters_path = os.path.join(path_file,'../input/chease_input_choices.xml')
print('code_parameters.parameters_path = ',path_file)
runtime_settings = chease.get_runtime_settings()
if cc['debug'] == 1:
from chease.common.runtime_settings import DebugMode
runtime_settings.debug_mode = DebugMode.STANDALONE
if cc['sandbox_manual'] == 1:
from chease.common.runtime_settings import SandboxLifeTime, SandboxMode
runtime_settings.sandbox.life_time = SandboxLifeTime.PERSISTENT
runtime_settings.sandbox.mode = SandboxMode.MANUAL
runtime_settings.sandbox.path = os.getcwd()
chease.initialize(code_parameters=code_parameters,runtime_settings=runtime_settings)
if m3flag == 0:
from chease.actor import chease as chease_actor
chease = chease_actor()
code_parameters = chease.get_code_parameters()
code_parameters.parameters_path = os.path.join(path_file,'../input/chease_input_choices.xml')
print('code_parameters.parameters_path = ',path_file)
runtime_settings = chease.get_runtime_settings()
if cc['debug'] == 1:
from chease.common.runtime_settings import DebugMode
runtime_settings.debug_mode = DebugMode.STANDALONE
if cc['sandbox_manual'] == 1:
from chease.common.runtime_settings import SandboxLifeTime, SandboxMode
runtime_settings.sandbox.life_time = SandboxLifeTime.PERSISTENT
runtime_settings.sandbox.mode = SandboxMode.MANUAL
runtime_settings.sandbox.path = os.getcwd()
chease.initialize(code_parameters=code_parameters,runtime_settings=runtime_settings)
# TO SUPPRESS THE ACCESS LAYER WARNINGS ABOUT OBSOLETE DATA
import logging
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment