Skip to content

Commit

Permalink
remove deprecated numpy.bool
Browse files Browse the repository at this point in the history
  • Loading branch information
haruishi43 authored Aug 16, 2023
1 parent 8255b74 commit e7bf731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion equilib/cube2equi/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e7bf731

Please sign in to comment.