diff --git a/bilby/core/sampler/dynesty.py b/bilby/core/sampler/dynesty.py index 860e0b0e69c8a919a3d3f2c1488b2d9b03bc26ad..f5c9e9a29cf46f7c3bf3e3dfbb02c980d716cba5 100644 --- a/bilby/core/sampler/dynesty.py +++ b/bilby/core/sampler/dynesty.py @@ -55,7 +55,7 @@ class Dynesty(NestedSampler): Method used to sample uniformly within the likelihood constraints, conditioned on the provided bounds walks: int - Number of walks taken if using `sample='rwalk'`, defaults to `ndim * 30` + Number of walks taken if using `sample='rwalk'`, defaults to `ndim * 10` dlogz: float, (0.1) Stopping criteria verbose: Bool @@ -156,7 +156,7 @@ class Dynesty(NestedSampler): def _verify_kwargs_against_default_kwargs(self): if not self.kwargs['walks']: - self.kwargs['walks'] = self.ndim * 30 + self.kwargs['walks'] = self.ndim * 10 if not self.kwargs['update_interval']: self.kwargs['update_interval'] = int(0.6 * self.kwargs['nlive']) if not self.kwargs['print_func']: diff --git a/test/sampler_test.py b/test/sampler_test.py index bccceda31ac70447672122fcac9bc4e9d456c6c9..9fc9060179f24b2cf2e8b0a54fb9275b3d26edfa 100644 --- a/test/sampler_test.py +++ b/test/sampler_test.py @@ -153,7 +153,7 @@ class TestDynesty(unittest.TestCase): enlarge=None, bootstrap=None, vol_dec=0.5, vol_check=2.0, facc=0.5, slices=5, dlogz=0.1, maxiter=None, maxcall=None, logl_max=np.inf, add_live=True, print_progress=True, save_bounds=False, - walks=60, update_interval=600, print_func='func') + walks=20, update_interval=600, print_func='func') self.sampler.kwargs['print_func'] = 'func' # set this manually as this is not testable otherwise self.assertListEqual([0, 1], self.sampler.kwargs['periodic']) # Check this separately self.sampler.kwargs['periodic'] = None # The dict comparison can't handle lists @@ -171,7 +171,7 @@ class TestDynesty(unittest.TestCase): enlarge=None, bootstrap=None, vol_dec=0.5, vol_check=2.0, facc=0.5, slices=5, dlogz=0.1, maxiter=None, maxcall=None, logl_max=np.inf, add_live=True, print_progress=True, save_bounds=False, - walks=60, update_interval=600, print_func='func') + walks=20, update_interval=600, print_func='func') for equiv in bilby.core.sampler.base_sampler.NestedSampler.npoints_equiv_kwargs: new_kwargs = self.sampler.kwargs.copy()