From a21849b7ffce44fc803e36d4bb35e2ca8f479804 Mon Sep 17 00:00:00 2001 From: Lucas Patel Date: Tue, 8 Aug 2023 13:26:18 -0700 Subject: [PATCH] fix: prefer threads for parallelization --- qupid/casematch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qupid/casematch.py b/qupid/casematch.py index 5b6ef06..e06486f 100644 --- a/qupid/casematch.py +++ b/qupid/casematch.py @@ -147,7 +147,7 @@ def create_matched_pairs( ss = SeedSequence(seed) child_states = ss.spawn(iterations) - all_matches = Parallel(n_jobs=n_jobs, **parallel_args)( + all_matches = Parallel(n_jobs=n_jobs, **parallel_args, prefer="threads")( delayed(self._get_cm_one_to_one)(G, strict, child_state) for child_state in child_states )