Commit a8ccd093 authored by Leo Pound Singer's avatar Leo Pound Singer

Do not try to thin by less than 1 sample

parent 533fd64f
......@@ -124,7 +124,7 @@ def ez_emcee(log_prob_fn, lo, hi, nindep=200,
progress.set_description('Checking')
acl = sampler.get_autocorr_time()[0].max()
if np.isfinite(acl):
acl = int(np.ceil(acl))
acl = min(1, int(np.ceil(acl)))
accept = np.mean(sampler.acceptance_fraction[0])
progress.set_postfix(acl=acl, accept=accept)
......
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