From c4333821d84bca374daa01ba296dc8f81ae6b2d5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 12 Oct 2024 13:01:08 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/wolf_sheep/wolf_sheep/model.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/wolf_sheep/wolf_sheep/model.py b/examples/wolf_sheep/wolf_sheep/model.py index 919dba32..5b43b791 100644 --- a/examples/wolf_sheep/wolf_sheep/model.py +++ b/examples/wolf_sheep/wolf_sheep/model.py @@ -51,7 +51,7 @@ def __init__( grass=False, grass_regrowth_time=30, sheep_gain_from_food=4, - seed=None + seed=None, ): """ Create a new Wolf-Sheep model with the given parameters. @@ -93,14 +93,16 @@ def __init__( x = self.random.randrange(self.width) y = self.random.randrange(self.height) energy = self.random.randrange(2 * self.sheep_gain_from_food) - Sheep(self, energy, sheep_reproduce, sheep_gain_from_food, self.grid[(x,y)]) + Sheep( + self, energy, sheep_reproduce, sheep_gain_from_food, self.grid[(x, y)] + ) # Create wolves for _ in range(self.initial_wolves): x = self.random.randrange(self.width) y = self.random.randrange(self.height) energy = self.random.randrange(2 * self.wolf_gain_from_food) - Wolf(self, energy, wolf_reproduce, wolf_gain_from_food, self.grid[(x,y)]) + Wolf(self, energy, wolf_reproduce, wolf_gain_from_food, self.grid[(x, y)]) # Create grass patches if self.grass: