From 2a4b418531b9bbfc62a4198e08e3e4dff06201c4 Mon Sep 17 00:00:00 2001 From: "Johannes U. Lange" Date: Tue, 19 Nov 2024 08:53:36 -0500 Subject: [PATCH] fixed test failure --- tests/test_pool.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_pool.py b/tests/test_pool.py index 47c55c4..fe8f0d7 100644 --- a/tests/test_pool.py +++ b/tests/test_pool.py @@ -8,7 +8,6 @@ from dask.distributed import Client from nautilus import Sampler -from nautilus.pool import NautilusPool def prior(x): @@ -36,7 +35,7 @@ def test_pool(pool): pool = Pool(n_jobs) else: pool = Client() - n_jobs = NautilusPool(pool).size + n_jobs = len(pool.nthreads()) sampler = Sampler(prior, likelihood, n_dim=2, n_live=50, n_networks=1, pool=pool)