Skip to content

Commit f4b7eb6

Browse files
committed
cleanup
1 parent b95d300 commit f4b7eb6

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,3 @@ repos:
3232
"--ignore-words",
3333
".codespellignore",
3434
]
35-
exclude: >
36-
(?x)^(
37-
.*\.ipynb
38-
)$

docs/tutorials/intro_tutorial.ipynb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,8 @@
294294
" super().__init__(seed=seed)\n",
295295
" self.num_agents = n\n",
296296
"\n",
297-
" # Create agents\n",
298-
" MoneyAgent.create_agents(\n",
299-
" model=self, n=n\n",
300-
" ) # This calls the agent class parameter n number of times\n",
297+
" # Create n agents\n",
298+
" MoneyAgent.create_agents(model=self, n=n)\n",
301299
"\n",
302300
" def step(self):\n",
303301
" \"\"\"Advance the model by one step.\"\"\"\n",
@@ -476,9 +474,7 @@
476474
" self.num_agents = n\n",
477475
"\n",
478476
" # Create agents\n",
479-
" MoneyAgent.create_agents(\n",
480-
" model=self, n=n\n",
481-
" ) # This calls the agent class parameter n number of times\n",
477+
" MoneyAgent.create_agents(model=self, n=n)\n",
482478
"\n",
483479
" def step(self):\n",
484480
" \"\"\"Advance the model by one step.\"\"\"\n",
@@ -1319,7 +1315,7 @@
13191315
" ethnicities = [\"Green\", \"Blue\", \"Mixed\"]\n",
13201316
"\n",
13211317
" # Create agents\n",
1322-
" MoneyAgent.create_agents(self, n, self.random.choice(ethnicities))\n",
1318+
" MoneyAgent.create_agents(model=self, n=n, ethnicity=self.random.choice(ethnicities))\n",
13231319
"\n",
13241320
" self.datacollector = mesa.DataCollector(\n",
13251321
" model_reporters={\"Gini\": compute_gini},\n",

0 commit comments

Comments
 (0)