Skip to content
Snippets Groups Projects
Commit 5fb7f945 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds autocorr_time to saved data

parent 3e2a76ed
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment