From ae0223b7f2d7ab51fe6728482814bcf0a7541237 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 22 Dec 2024 19:47:22 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mesa/examples/advanced/wolf_sheep/model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesa/examples/advanced/wolf_sheep/model.py b/mesa/examples/advanced/wolf_sheep/model.py index bffc891667c..f80fc19a8b6 100644 --- a/mesa/examples/advanced/wolf_sheep/model.py +++ b/mesa/examples/advanced/wolf_sheep/model.py @@ -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