From 52dbf7f342fd8c87980954f0f659643c77a13664 Mon Sep 17 00:00:00 2001 From: Jonathan <47629418+Jonathan43@users.noreply.github.com> Date: Mon, 29 Apr 2024 18:42:39 +0200 Subject: [PATCH] Update _cutils.pyx `np.bool` is a deprecated alias for `bool` in numpy --- deepforest/_cutils.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepforest/_cutils.pyx b/deepforest/_cutils.pyx index 398e437..0f1b4e0 100644 --- a/deepforest/_cutils.pyx +++ b/deepforest/_cutils.pyx @@ -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):