Skip to content

Commit

Permalink
Update _cutils.pyx
Browse files Browse the repository at this point in the history
`np.bool` is a deprecated alias for `bool` in numpy
  • Loading branch information
Jonathan43 authored Apr 29, 2024
1 parent 96e762b commit 52dbf7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepforest/_cutils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cpdef np.ndarray _c_sample_mask(const INT32_t [:] indices,
SIZE_t n = indices.shape[0]
SIZE_t sample_id
np.ndarray[BOOL, ndim=1] sample_mask = np.zeros((n_samples,),
dtype=np.bool)
dtype=bool)

with nogil:
for i in range(n):
Expand Down

0 comments on commit 52dbf7f

Please sign in to comment.