Skip to content

Commit 00e52a7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fecb044 commit 00e52a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cellular_automata/von_neumann.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ def create_random_grid(
5959
raise ValueError("alive_probability must be between 0.0 and 1.0")
6060

6161
rng = np.random.default_rng(seed)
62-
alive_cells = (rng.random((rows, columns)) < alive_probability).astype(
63-
np.uint8
64-
)
62+
alive_cells = (rng.random((rows, columns)) < alive_probability).astype(np.uint8)
6563
return alive_cells
6664

6765

0 commit comments

Comments
 (0)