Skip to content

Commit 4d216ca

Browse files
committed
Rename wolf sheep constructor parameter name
1 parent 6e93025 commit 4d216ca

File tree

1 file changed

+2
-2
lines changed
  • mesa/examples/advanced/wolf_sheep

1 file changed

+2
-2
lines changed

mesa/examples/advanced/wolf_sheep/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
wolf_reproduce=0.05,
4343
wolf_gain_from_food=20,
4444
grass=True,
45-
grass_regrowth_time=30,
45+
max_grass_regrowth_time=30,
4646
sheep_gain_from_food=4,
4747
seed=None,
4848
simulator: ABMSimulator = None,
@@ -100,7 +100,7 @@ def generate_grass_regrowth_time_array(): # Using Gaussian filter to make it lo
100100
rows, cols = height, width
101101

102102
seeds = np.zeros((rows, cols))
103-
num_seeds = grass_regrowth_time
103+
num_seeds = max_grass_regrowth_time
104104

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

0 commit comments

Comments
 (0)