When I execute my script, it runs several times. In my terminal I see the cadCAD logo several times per run.
My output file, where I write out raw_result, contains 4 sets of results.
Here are parts of my code that I guess are relevant:
“”"### Workaround against interrupted execution and no agent update during the execution - from the cadCAD community “”"
if name == ‘main’:
client = Client()
“”"### Configuration and Execution"""
config = Configuration(initial_state=initial_conditions,
from cadCAD.engine import ExecutionMode, ExecutionContext, Executor
exec_mode = ExecutionMode()
exec_context = ExecutionContext(exec_mode.single_proc)
executor = Executor(exec_context, [config])
raw_result, tensor = executor.execute()
Please let me know if I should send something else. I can also put together a very basic script that reproduces the issue.