Merge pull request #55 from BlockScience/staging

restart threads
This commit is contained in:
Joshua E. Jodesty 2019-08-27 15:28:54 -04:00 committed by GitHub
commit 4f58a169c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -222,10 +222,13 @@ 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.clear()
return pipe_run