From b51a0c3a57c70b90a2067cb565b3e59047b7b5f9 Mon Sep 17 00:00:00 2001 From: Filippo Vicentini <filippovicentini@gmail.com> Date: Wed, 17 Mar 2021 16:59:43 +0100 Subject: [PATCH] fix example --- Examples/Ising1d/plot_ising.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Examples/Ising1d/plot_ising.py b/Examples/Ising1d/plot_ising.py index 0e4faf088..849ce8f90 100644 --- a/Examples/Ising1d/plot_ising.py +++ b/Examples/Ising1d/plot_ising.py @@ -16,10 +16,10 @@ while True: plt.xlabel("Iteration #") data = json.load(open("test.log")) - iters = data["Energy"]["Mean"]["iters"] - energy = data["Energy"]["Mean"]["values"] - sigma = data["Energy"]["Sigma"]["values"] - evar = data["Energy"]["Variance"]["values"] + iters = data["Energy"]["iters"] + energy = data["Energy"]["Mean"] + sigma = data["Energy"]["Sigma"] + evar = data["Energy"]["Variance"] nres = len(iters) cut = 60 -- GitLab