Skip to content

Commit

Permalink
Rename np.bool to np.bool_ adapt to fix numpy deprecation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
kikefdezl authored and BrianPugh committed Dec 15, 2024
1 parent 09abaac commit 472943a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py360convert/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def equirect_facetype(h, w):
tp = np.roll(np.arange(4).repeat(w // 4)[None, :].repeat(h, 0), 3 * w // 8, 1)

# Prepare ceil mask
mask = np.zeros((h, w // 4), np.bool)
mask = np.zeros((h, w // 4), np.bool_)
idx = np.linspace(-np.pi, np.pi, w // 4) / 4
idx = h // 2 - np.round(np.arctan(np.cos(idx)) * h / np.pi).astype(int)
for i, j in enumerate(idx):
Expand Down

0 comments on commit 472943a

Please sign in to comment.