Skip to content

Commit

Permalink
deprecate np.bool
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhaoliang committed Jan 19, 2024
1 parent 7891e74 commit d295102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gifmaze/example_game_of_life.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def main(seed_file, grid_size, offsets, cutoff, frames):
:param cutoff: cutoff of the image relative to the actual grid.
:param frames: number of frames in the animation.
"""
seed = np.array(parse(seed_file), dtype=np.bool)
grid = np.zeros(grid_size).astype(np.bool)
seed = np.array(parse(seed_file), dtype=bool)
grid = np.zeros(grid_size).astype(bool)
grid[
offsets[0] : seed.shape[0] + offsets[0], offsets[1] : seed.shape[1] + offsets[1]
] = seed
Expand Down

0 comments on commit d295102

Please sign in to comment.