From e7bf731babcd23857110e1e46a6502a5b8e608c3 Mon Sep 17 00:00:00 2001 From: haruishi <7902640+haruishi43@users.noreply.github.com> Date: Wed, 16 Aug 2023 13:40:29 +0900 Subject: [PATCH] remove deprecated numpy.bool --- equilib/cube2equi/numpy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/equilib/cube2equi/numpy.py b/equilib/cube2equi/numpy.py index 8b2e83c2..dd7817d4 100644 --- a/equilib/cube2equi/numpy.py +++ b/equilib/cube2equi/numpy.py @@ -133,7 +133,7 @@ def _equirect_facetype(h: int, w: int) -> np.ndarray: ) # Prepare ceil mask - mask = np.zeros((h, w // 4), np.bool) + mask = np.zeros((h, w // 4), bool) idx = np.linspace(-(np.pi * w_ratio), np.pi * w_ratio, w // 4) / 4 idx = h // 2 - np.around(np.arctan(np.cos(idx)) * h / (np.pi * h_ratio)) idx = idx.astype(int_dtype)