At some point we made the run_simulation function return the Simulation object to facilitate testing. However this broke the parallel execution of the code because parallelization (at least via joblib) pickles the returned object in the reduce step. However, the Simulation object is not pickle-able. We now drop the returned value in the wrapper that encapsulates run_simulation.
Description
At some point we made the
run_simulation
function return the Simulation object to facilitate testing. However this broke the parallel execution of the code because parallelization (at least via joblib) pickles the returned object in the reduce step. However, the Simulation object is not pickle-able. We now drop the returned value in the wrapper that encapsulatesrun_simulation
.Does this address any currently open issues?
N/A