diff --git a/cadCAD/engine/simulation.py b/cadCAD/engine/simulation.py index 32e9c5b..93e78c7 100644 --- a/cadCAD/engine/simulation.py +++ b/cadCAD/engine/simulation.py @@ -222,10 +222,15 @@ class Executor: return first_timestep_per_run + tp = TPool(runs) pipe_run: List[List[Dict[str, Any]]] = flatten( - TPool().map( + tp.map( lambda run: execute_run(sweep_dict, states_list, configs, env_processes, time_seq, run), list(range(runs)) ) ) + + # tp.close() + # tp.join() + tp.clear() return pipe_run