restart threads
This commit is contained in:
parent
6489a75f1e
commit
8768819790
|
|
@ -222,10 +222,15 @@ class Executor:
|
||||||
|
|
||||||
return first_timestep_per_run
|
return first_timestep_per_run
|
||||||
|
|
||||||
|
tp = TPool(runs)
|
||||||
pipe_run: List[List[Dict[str, Any]]] = flatten(
|
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),
|
lambda run: execute_run(sweep_dict, states_list, configs, env_processes, time_seq, run),
|
||||||
list(range(runs))
|
list(range(runs))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# tp.close()
|
||||||
|
# tp.join()
|
||||||
|
tp.clear()
|
||||||
return pipe_run
|
return pipe_run
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue