diff --git a/pyfstat/mcmc_based_searches.py b/pyfstat/mcmc_based_searches.py index 649e1c8996e475b7512d0bae37a0d18514d621f7..96a601e1fe87c41c36d503986bf756c94d9bf875 100644 --- a/pyfstat/mcmc_based_searches.py +++ b/pyfstat/mcmc_based_searches.py @@ -361,9 +361,11 @@ class MCMCSearch(core.BaseSearchClass): logging.info("Tswap acceptance fraction: {}" .format(sampler.tswap_acceptance_fraction)) try: + self.autocorr_time = sampler.get_autocorr_time(c=4) logging.info("Autocorrelation length: {}".format( - sampler.get_autocorr_time(c=5))) + self.autocorr_time)) except emcee.autocorr.AutocorrError as e: + self.autocorr_time = np.nan logging.warning( 'Autocorrelation calculation failed with message {}'.format(e))