@@ -109,13 +109,13 @@ def __init__(
109
109
110
110
self .grid .add_property_layer (PropertyLayer .from_data ("cliff" , cliff_arr ))
111
111
112
- possibleCells = []
112
+ possible_cells = []
113
113
for cell in self .grid .all_cells .cells :
114
114
if (
115
115
cell .coordinate [0 ],
116
116
cell .coordinate [1 ],
117
117
) not in cliff_coord : # so we don't create wolf or sheep on cliff cells
118
- possibleCells .append (cell )
118
+ possible_cells .append (cell )
119
119
120
120
# Create sheep:
121
121
Sheep .create_agents (
@@ -124,7 +124,7 @@ def __init__(
124
124
energy = self .rng .random ((initial_sheep ,)) * 2 * sheep_gain_from_food ,
125
125
p_reproduce = sheep_reproduce ,
126
126
energy_from_food = sheep_gain_from_food ,
127
- cell = self .random .choices (possibleCells , k = initial_sheep ),
127
+ cell = self .random .choices (possible_cells , k = initial_sheep ),
128
128
)
129
129
# Create Wolves:
130
130
Wolf .create_agents (
@@ -133,7 +133,7 @@ def __init__(
133
133
energy = self .rng .random ((initial_wolves ,)) * 2 * wolf_gain_from_food ,
134
134
p_reproduce = wolf_reproduce ,
135
135
energy_from_food = wolf_gain_from_food ,
136
- cell = self .random .choices (possibleCells , k = initial_wolves ),
136
+ cell = self .random .choices (possible_cells , k = initial_wolves ),
137
137
)
138
138
139
139
# Create grass patches if enabled
0 commit comments