aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2021-01-05 13:45:17 -0600
committertlatorre <tlatorre@uchicago.edu>2021-01-05 13:45:17 -0600
commit9607aee9d5eec34ab3f99646a425b41a8763ce24 (patch)
tree06a7be88bee704d162ead06b4f3b86156dc62108
parent8ef78a3cdb2f860d1ca970de179c83c4ae01f235 (diff)
downloadsddm-9607aee9d5eec34ab3f99646a425b41a8763ce24.tar.gz
sddm-9607aee9d5eec34ab3f99646a425b41a8763ce24.tar.bz2
sddm-9607aee9d5eec34ab3f99646a425b41a8763ce24.zip
print latex table
-rwxr-xr-xutils/dc6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/dc b/utils/dc
index c6b2f36..62e3906 100755
--- a/utils/dc
+++ b/utils/dc
@@ -491,10 +491,14 @@ if __name__ == '__main__':
print("Mean acceptance fraction: {0:.3f}".format(np.mean(sampler.acceptance_fraction)))
try:
- print("autocorrelation time: ", sampler.get_autocorr_time(quiet=True))
+ tau = sampler.get_autocorr_time(quiet=True)
+ print("autocorrelation time: ", tau)
except Exception as e:
print(e)
+ for i in range(len(stepsizes)):
+ print("%.2g & %i \\\\" % (stepsizes[i],int(tau[i])))
+
# Plot walker positions as a function of step number for the expected
# number of events
fig, axes = plt.subplots(6, num=1, sharex=True)