From b88a12019fca1451a0ef40a764f0a50d8f6ccaee Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Fri, 30 Aug 2024 15:44:00 +0200 Subject: [PATCH] GoL_fast: Remove advance_time() `steps` is now increased automatically, it's not needed anymore! --- examples/conways_game_of_life_fast/model.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/conways_game_of_life_fast/model.py b/examples/conways_game_of_life_fast/model.py index ecbfb9121..97c470221 100644 --- a/examples/conways_game_of_life_fast/model.py +++ b/examples/conways_game_of_life_fast/model.py @@ -24,7 +24,6 @@ def __init__(self, width=10, height=10, alive_fraction=0.2): self.datacollector.collect(self) def step(self): - self._advance_time() # Define a kernel for counting neighbors. The kernel has 1s around the center cell (which is 0). # This setup allows us to count the live neighbors of each cell when we apply convolution. kernel = np.array([[1, 1, 1],