Commit 5fb7f945 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds autocorr_time to saved data

parent 3e2a76ed
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment