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 Dec 22, 2024
1 parent 0543569 commit 120456a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesa/examples/advanced/wolf_sheep/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def __init__(
cliff_arr = [[False] * self.width for i in range(self.height)]

cliff_coord = {
(random.randrange(self.height), random.randrange(self.width))
for i in range((width * height) // 3)
(random.randrange(self.height), random.randrange(self.width))
for i in range((width * height) // 3)
} # set is used because the random number gen might return the same coordinate
for i, j in cliff_coord:
cliff_arr[i][j] = True
Expand Down

0 comments on commit 120456a

Please sign in to comment.