Skip to content

Commit

Permalink
Fix np.bool warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Jul 13, 2021
1 parent 6b4c34d commit 47bec38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dask_cuda/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def unpack_bitmask(x, mask_bits=64):
bytestr = np.frombuffer(
bytes(np.binary_repr(mask, width=mask_bits), "utf-8"), "u1"
)
mask = np.flip(bytestr - ord("0")).astype(np.bool)
mask = np.flip(bytestr - ord("0")).astype(bool)
unpacked_mask = np.where(
mask, np.arange(mask_bits) + cpu_offset, np.full(mask_bits, -1)
)
Expand Down

0 comments on commit 47bec38

Please sign in to comment.