diff options
author | tlatorre <tlatorre@uchicago.edu> | 2021-01-05 13:45:17 -0600 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-01-05 13:45:17 -0600 |
commit | 9607aee9d5eec34ab3f99646a425b41a8763ce24 (patch) | |
tree | 06a7be88bee704d162ead06b4f3b86156dc62108 | |
parent | 8ef78a3cdb2f860d1ca970de179c83c4ae01f235 (diff) | |
download | sddm-9607aee9d5eec34ab3f99646a425b41a8763ce24.tar.gz sddm-9607aee9d5eec34ab3f99646a425b41a8763ce24.tar.bz2 sddm-9607aee9d5eec34ab3f99646a425b41a8763ce24.zip |
print latex table
-rwxr-xr-x | utils/dc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |