Skip to content

Commit

Permalink
fix: model name in visualization tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-Chhoker committed Jan 3, 2025
1 parent f72a268 commit 6e50e2e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/tutorials/visualization_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@
"outputs": [],
"source": [
"# Create initial model instance\n",
"model1 = MoneyModel(n=50, width=10, height=10) #keyword arguments\n",
"money_model = MoneyModel(n=50, width=10, height=10) #keyword arguments\n",
"\n",
"SpaceGraph = make_space_component(agent_portrayal)\n",
"GiniPlot = make_plot_component(\"Gini\")\n",
"\n",
"page = SolaraViz(\n",
" model1,\n",
" money_model,\n",
" components=[SpaceGraph, GiniPlot],\n",
" model_params=model_params,\n",
" name=\"Boltzmann Wealth Model\",\n",
Expand Down Expand Up @@ -207,13 +207,13 @@
"outputs": [],
"source": [
"# Create initial model instance\n",
"model = MoneyModel(n=50, width=10, height=10)\n",
"money_model = MoneyModel(n=50, width=10, height=10)\n",
"\n",
"SpaceGraph = make_space_component(agent_portrayal)\n",
"GiniPlot = make_plot_component(\"Gini\")\n",
"\n",
"page = SolaraViz(\n",
" model1,\n",
" money_model,\n",
" components=[SpaceGraph, GiniPlot],\n",
" model_params=model_params,\n",
" name=\"Boltzmann Wealth Model\",\n",
Expand Down Expand Up @@ -318,7 +318,7 @@
"outputs": [],
"source": [
"# Create initial model instance\n",
"model = MoneyModel(n=50, width=10, height=10)\n",
"money_model = MoneyModel(n=50, width=10, height=10)\n",
"\n",
"SpaceGraph = make_space_component(agent_portrayal)\n",
"GiniPlot = make_plot_component(\"Gini\")"
Expand Down Expand Up @@ -354,7 +354,7 @@
],
"source": [
"page = SolaraViz(\n",
" model,\n",
" money_model,\n",
" components=[SpaceGraph, GiniPlot, Histogram],\n",
" model_params=model_params,\n",
" name=\"Boltzmann Wealth Model\",\n",
Expand Down Expand Up @@ -399,7 +399,7 @@
}
],
"source": [
"Histogram(model)"
"Histogram(money_model)"
]
},
{
Expand Down

0 comments on commit 6e50e2e

Please sign in to comment.