You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the params variable inside a policy function looks like this: {'a': 1.0, 'b': 1.0, 'c': 0, 'dt': 0.1}
This is what is expected.
However, by setting the following: exec_context = ExecutionContext(context=ExecutionMode.single_mode)
the params variable inside a policy function becomes a list with a dictionary inside it: [{'a': 1.0, 'b': 1.0, 'c': 0, 'dt': 0.1}]
Which breaks the simulation.
If however, we add a parameter sweep (whilst maintaining single_mode):
the params variable inside a policy function drops the enclosing list and is once again just a dictionary: {'a': 1.0, 'b': 1.0, 'c': 0, 'dt': 0.1}
for first run.
{'a': 2.0, 'b': 1.0, 'c': 0, 'dt': 0.1}
for second run.
@JEJodesty I think this relates to what we discussed in the last Core-Tech meeting.
Probably related to: #254 #251 #248 #242
when runs are greater than one, the execution mode defaults to multi-threaded execution when local mode is selected.
when single mode is specified, simulation execution should be single- threaded
The execution mode needs to be clear
note:
jupyter has control of the threads and uses tornado for multi-threading
@rogervs
The text was updated successfully, but these errors were encountered: