Skip to content

Commit e4121a4

Browse files
committed
docs: Update batch_run import in intro tutorial
1 parent 21e3fe9 commit e4121a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ To batch-run the model while varying, for example, the n_agents parameter, you'd
103103
import mesa
104104

105105
parameters = {"n_agents": range(1, 20)}
106-
mesa.batch_run(
106+
mesa.batchrunner.batch_run(
107107
MyModel,
108108
parameters,
109109
max_steps=10,

docs/tutorials/intro_tutorial.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
"outputs": [],
160160
"source": [
161161
"import mesa\n",
162+
"from mesa.batchrunner import batch_run\n",
162163
"from mesa.datacollection import DataCollector\n",
163164
"\n",
164165
"# Data visualization tools.\n",
@@ -1166,7 +1167,7 @@
11661167
"source": [
11671168
"params = {\"width\": 10, \"height\": 10, \"N\": range(5, 100, 5)}\n",
11681169
"\n",
1169-
"results = mesa.batch_run(\n",
1170+
"results = batch_run(\n",
11701171
" MoneyModel,\n",
11711172
" parameters=params,\n",
11721173
" iterations=7,\n",
@@ -1315,7 +1316,7 @@
13151316
"source": [
13161317
"params = {\"width\": 10, \"height\": 10, \"N\": [5, 10, 20, 40, 80]}\n",
13171318
"\n",
1318-
"results_5s = mesa.batch_run(\n",
1319+
"results_5s = batch_run(\n",
13191320
" MoneyModel,\n",
13201321
" parameters=params,\n",
13211322
" iterations=100,\n",

0 commit comments

Comments
 (0)