Skip to content
Snippets Groups Projects
Commit 937ccbea authored by Vishruth Mullapudi's avatar Vishruth Mullapudi
Browse files

fixed issue with migration to threadpool executor

parent c06f4f45
Branches
1 merge request!2Pregen resfiles
......@@ -215,7 +215,7 @@ Configure the chains, mutant residue, and Rosetta options in the specified confi
executor = concurrent.futures.ThreadPoolExecutor(
max_workers=min(max_cpus, os.cpu_count())
)
results = {executor.submit(run_flex_ddg, args=args): args for args in flex_ddg_cases}
results = {executor.submit(run_flex_ddg, *args): args for args in flex_ddg_cases}
executor.shutdown(wait=True)
# This will raise any of the exceptions thrown by the processes in pool so that we can see them
for future in concurrent.futures.as_completed(results):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment