From d295102d240308a04d8694138b45b62114d35db0 Mon Sep 17 00:00:00 2001 From: neozhaoliang Date: Fri, 19 Jan 2024 22:24:14 +0800 Subject: [PATCH] deprecate np.bool --- src/gifmaze/example_game_of_life.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gifmaze/example_game_of_life.py b/src/gifmaze/example_game_of_life.py index 3c6d833..d61d0c6 100644 --- a/src/gifmaze/example_game_of_life.py +++ b/src/gifmaze/example_game_of_life.py @@ -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