Skip to content

Commit

Permalink
Rename wolf sheep constructor parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
mgemaakbar committed Jan 19, 2025
1 parent cad6131 commit 7589b6c
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 @@ -42,7 +42,7 @@ def __init__(
wolf_reproduce=0.05,
wolf_gain_from_food=20,
grass=True,
grass_regrowth_time=30,
max_grass_regrowth_time=30,
sheep_gain_from_food=4,
seed=None,
simulator: ABMSimulator = None,
Expand Down Expand Up @@ -100,7 +100,7 @@ def generate_grass_regrowth_time_array(): # Using Gaussian filter to make it lo
rows, cols = height, width

seeds = np.zeros((rows, cols))
num_seeds = grass_regrowth_time
num_seeds = max_grass_regrowth_time

for _ in range(num_seeds):
x, y = np.random.randint(0, rows), np.random.randint(0, cols)
Expand Down

0 comments on commit 7589b6c

Please sign in to comment.