From c3141c17ff7a643fa6b30e97f91318a7dc0610e4 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Mon, 29 Jul 2019 13:44:41 +1000 Subject: [PATCH] Revert the change to dlogz --- bilby/core/sampler/dynesty.py | 4 ++-- test/sampler_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bilby/core/sampler/dynesty.py b/bilby/core/sampler/dynesty.py index 80de8ca63..860e0b0e6 100644 --- a/bilby/core/sampler/dynesty.py +++ b/bilby/core/sampler/dynesty.py @@ -56,7 +56,7 @@ class Dynesty(NestedSampler): conditioned on the provided bounds walks: int Number of walks taken if using `sample='rwalk'`, defaults to `ndim * 30` - dlogz: float, (0.5) + dlogz: float, (0.1) Stopping criteria verbose: Bool If true, print information information about the convergence during @@ -85,7 +85,7 @@ class Dynesty(NestedSampler): enlarge=None, bootstrap=None, vol_dec=0.5, vol_check=2.0, facc=0.5, slices=5, update_interval=None, print_func=None, - dlogz=0.5, maxiter=None, maxcall=None, + dlogz=0.1, maxiter=None, maxcall=None, logl_max=np.inf, add_live=True, print_progress=True, save_bounds=False) diff --git a/test/sampler_test.py b/test/sampler_test.py index 118291092..bccceda31 100644 --- a/test/sampler_test.py +++ b/test/sampler_test.py @@ -151,7 +151,7 @@ class TestDynesty(unittest.TestCase): use_pool=None, live_points=None, logl_args=None, logl_kwargs=None, ptform_args=None, ptform_kwargs=None, enlarge=None, bootstrap=None, vol_dec=0.5, vol_check=2.0, - facc=0.5, slices=5, dlogz=0.5, maxiter=None, maxcall=None, + 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') self.sampler.kwargs['print_func'] = 'func' # set this manually as this is not testable otherwise @@ -169,7 +169,7 @@ class TestDynesty(unittest.TestCase): use_pool=None, live_points=None, logl_args=None, logl_kwargs=None, ptform_args=None, ptform_kwargs=None, enlarge=None, bootstrap=None, vol_dec=0.5, vol_check=2.0, - facc=0.5, slices=5, dlogz=0.5, maxiter=None, maxcall=None, + 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') -- GitLab