Skip to content

Commit b8f4c52

Browse files
marscherrdbisme
authored andcommitted
[slow/move] fix np.bool deprecation
Use explicit boolean c type. Fixes #402
1 parent 20b0601 commit b8f4c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bottleneck/slow/move.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def _mask(a, window, min_count, axis):
165165
idx3 = tuple(idx3)
166166
nidx1 = n[idx1]
167167
nidx1 = nidx1 - n[idx2]
168-
idx = np.empty(a.shape, dtype=np.bool)
168+
idx = np.empty(a.shape, dtype=np.bool_)
169169
idx[idx1] = nidx1 < min_count
170170
idx[idx3] = n[idx3] < min_count
171171
return idx

0 commit comments

Comments
 (0)