Skip to content

Commit

Permalink
removed extra" .random" on line 178.
Browse files Browse the repository at this point in the history
self.model.random.random.shuffle(agent_keys) should be self.model.random.shuffle(agent_keys) .  gives Attribute error otherwise
  • Loading branch information
deborahduong authored Mar 14, 2019
1 parent 2359a12 commit aab7424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def step(self):
for agent_key in agent_keys:
getattr(self._agents[agent_key], stage)() # Run stage
if self.shuffle_between_stages:
self.model.random.random.shuffle(agent_keys)
self.model.random.shuffle(agent_keys)
self.time += self.stage_time

self.steps += 1

0 comments on commit aab7424

Please sign in to comment.