Skip to content

Commit

Permalink
remove from schedule because there are no weakrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Feb 24, 2024
1 parent 1379c06 commit 16a52e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benchmarks/WolfSheep/wolf_sheep.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def feed(self):

def die(self):
self.model.grid.remove_agent(self)
self.model.schedule.remove(self)
self.remove()

def step(self):
Expand Down

0 comments on commit 16a52e4

Please sign in to comment.