Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 25, 2024
1 parent ce9e31a commit 26a74a7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions benchmarks/Schelling/schelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ class Schelling(mesa.Model):
"""

def __init__(
self, height=40, width=40, homophily=3, radius=1, density=0.8, minority_pc=0.5, seed=None
self,
height=40,
width=40,
homophily=3,
radius=1,
density=0.8,
minority_pc=0.5,
seed=None,
):
"""
Create a new Schelling model.
Expand Down Expand Up @@ -87,7 +94,9 @@ def step(self):
import time

# model = Schelling(seed=15, height=40, width=40, homophily=3, radius=1, density=0.625)
model = Schelling(seed=15, height=100, width=100, homophily=8, radius=2, density=0.8)
model = Schelling(
seed=15, height=100, width=100, homophily=8, radius=2, density=0.8
)

start_time = time.perf_counter()
for _ in range(100):
Expand Down

0 comments on commit 26a74a7

Please sign in to comment.