Skip to content

Commit

Permalink
Update test_lifespan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Corvince authored Feb 1, 2019
1 parent b7b350b commit fae3e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_lifespan.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def step(self):
inactivated = self.inactivate()
if not inactivated:
self.steps += 1 # keep track of how many ticks are seen
if np.random.binomial(1, 0.1) is not 0: # 10% chance of dying
if np.random.binomial(1, 0.1) != 0: # 10% chance of dying
self.model.schedule.remove(self)

def inactivate(self):
Expand Down

0 comments on commit fae3e7f

Please sign in to comment.