Skip to content

Commit

Permalink
GoL_fast: Remove advance_time()
Browse files Browse the repository at this point in the history
`steps` is now increased automatically, it's not needed anymore!
  • Loading branch information
EwoutH committed Aug 30, 2024
1 parent a21ef12 commit d8f553b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/conways_game_of_life_fast/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit d8f553b

Please sign in to comment.