Skip to content

Commit

Permalink
schelling experimental: Add _advance_time()
Browse files Browse the repository at this point in the history
  • Loading branch information
rht committed Jan 22, 2024
1 parent f732392 commit b958a72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/schelling_experimental/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def step(self):
"""
self.happy = 0 # Reset counter of happy agents
self.agents.shuffle().do("step")
# Must be before data collection.
self._advance_time() # Temporary API; will be finalized by Mesa 3.0 release
# collect data
self.datacollector.collect(self)

Expand Down

0 comments on commit b958a72

Please sign in to comment.