From 097c250741cb31b4f2d531f5e09ee52183f85838 Mon Sep 17 00:00:00 2001 From: Caleb Bell Date: Mon, 11 Nov 2024 15:03:53 -0700 Subject: [PATCH] Update joback estimator script to run in parallel --- dev/predictions/generate_joback_predictions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/predictions/generate_joback_predictions.py b/dev/predictions/generate_joback_predictions.py index d5f17b8..597a3ad 100644 --- a/dev/predictions/generate_joback_predictions.py +++ b/dev/predictions/generate_joback_predictions.py @@ -54,7 +54,7 @@ def generate_line(CASi): -retVals = Parallel()(delayed(generate_line)(CASi) for CASi in sorted(pubchem_db.CAS_index)) +retVals = Parallel(n_jobs=16, batch_size=500, backend='multiprocessing')(delayed(generate_line)(CASi) for CASi in sorted(pubchem_db.CAS_index)) for l in retVals: if l is not False: lines.append(l)