diff --git a/bilby/core/sampler/dynesty.py b/bilby/core/sampler/dynesty.py index bb931ed3b8ffc9d619f8f69de800dcf14b805a75..70480c6b83f891faf7cf6bd9213c1a25bed6ec32 100644 --- a/bilby/core/sampler/dynesty.py +++ b/bilby/core/sampler/dynesty.py @@ -3,6 +3,7 @@ import inspect import os import sys import time +import warnings import numpy as np from pandas import DataFrame @@ -677,10 +678,17 @@ class Dynesty(NestedSampler): chain of nested samples within dynesty and have to be removed before restarting the sampler. """ + logger.debug("Running sampler with checkpointing") old_ncall = self.sampler.ncall sampler_kwargs = self.sampler_function_kwargs.copy() + warnings.filterwarnings( + "ignore", + message="The sampling was stopped short due to maxiter/maxcall limit*", + category=UserWarning, + module="dynesty.sampler", + ) while True: self.finalize_sampler_kwargs(sampler_kwargs) self.sampler.run_nested(**sampler_kwargs)