Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 8, 2024
1 parent 021eb56 commit 93bd4c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/conways_game_of_life_fast/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"max": 1,
"step": 0.01,
},
"randomize_new_cells": { # New parameter for manual adjustment
"randomize_new_cells": { # New parameter for manual adjustment
"type": "SliderFloat",
"value": 0.05, # The initial probability of reviving new cells
"label": "New Cells Randomization",
Expand Down
2 changes: 1 addition & 1 deletion examples/conways_game_of_life_fast/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def step(self):
# Count neighbors using convolution
neighbor_count = convolve2d(self.cell_layer.data, kernel, mode="same", boundary="wrap")

""" Changing the behavior of cells so that they can "die from overpopulation"
""" Changing the behavior of cells so that they can "die from overpopulation"
if there are more than 4 living neighbors around them. """

# Apply Game of Life rules with overpopulation death:
Expand Down

0 comments on commit 93bd4c2

Please sign in to comment.