From 9607aee9d5eec34ab3f99646a425b41a8763ce24 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 5 Jan 2021 13:45:17 -0600 Subject: print latex table --- utils/dc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit