Skip to content

Commit 08e51b7

Browse files
committed
Revert "docs: Update batch_run import in intro tutorial"
This reverts commit e4121a4.
1 parent e4121a4 commit 08e51b7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
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.batchrunner.batch_run(
106+
mesa.batch_run(
107107
MyModel,
108108
parameters,
109109
max_steps=10,

docs/tutorials/intro_tutorial.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@
159159
"outputs": [],
160160
"source": [
161161
"import mesa\n",
162-
"from mesa.batchrunner import batch_run\n",
163162
"from mesa.datacollection import DataCollector\n",
164163
"\n",
165164
"# Data visualization tools.\n",
@@ -1167,7 +1166,7 @@
11671166
"source": [
11681167
"params = {\"width\": 10, \"height\": 10, \"N\": range(5, 100, 5)}\n",
11691168
"\n",
1170-
"results = batch_run(\n",
1169+
"results = mesa.batch_run(\n",
11711170
" MoneyModel,\n",
11721171
" parameters=params,\n",
11731172
" iterations=7,\n",
@@ -1316,7 +1315,7 @@
13161315
"source": [
13171316
"params = {\"width\": 10, \"height\": 10, \"N\": [5, 10, 20, 40, 80]}\n",
13181317
"\n",
1319-
"results_5s = batch_run(\n",
1318+
"results_5s = mesa.batch_run(\n",
13201319
" MoneyModel,\n",
13211320
" parameters=params,\n",
13221321
" iterations=100,\n",

0 commit comments

Comments
 (0)