Skip to content

Commit ea1bed1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f276f67 commit ea1bed1

File tree

1 file changed

+11
-3
lines changed
  • examples/hotelling_law/hotelling_law

1 file changed

+11
-3
lines changed

examples/hotelling_law/hotelling_law/model.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,20 @@ def _initialize_agents(self):
186186
if can_move:
187187
mobile_agents_assigned += 1
188188

189-
StoreAgent(self, self.grid.all_cells.select_random_cell(), can_move=can_move, strategy=strategy)
189+
StoreAgent(
190+
self,
191+
self.grid.all_cells.select_random_cell(),
192+
can_move=can_move,
193+
strategy=strategy,
194+
)
190195

191196
# Place consumer agents
192197
for _ in range(self.num_consumers):
193-
ConsumerAgent(self, self.grid.all_cells.select_random_cell(), self.consumer_preferences)
194-
198+
ConsumerAgent(
199+
self,
200+
self.grid.all_cells.select_random_cell(),
201+
self.consumer_preferences,
202+
)
195203

196204
# Method to advance the simulation by one step.
197205
def step(self):

0 commit comments

Comments
 (0)