From d055be76af331ebc781db50e7701987c341ec3c6 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Tue, 3 Sep 2024 18:35:56 +0200 Subject: [PATCH] docs: Fix Visualization Tutorial (main branch) The scheduler was removed from the example model used, so the docs started failing. --- docs/tutorials/visualization_tutorial.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/visualization_tutorial.ipynb b/docs/tutorials/visualization_tutorial.ipynb index ba8d7a922d2..c40b0d1b165 100644 --- a/docs/tutorials/visualization_tutorial.ipynb +++ b/docs/tutorials/visualization_tutorial.ipynb @@ -208,7 +208,7 @@ " # plt.figure(), for thread safety purpose\n", " fig = Figure()\n", " ax = fig.subplots()\n", - " wealth_vals = [agent.wealth for agent in model.schedule.agents]\n", + " wealth_vals = [agent.wealth for agent in model.agents]\n", " # Note: you have to use Matplotlib's OOP API instead of plt.hist\n", " # because plt.hist is not thread-safe.\n", " ax.hist(wealth_vals, bins=10)\n",