From c36ff4c31e35f345490f93ae3ad1822fcd1d1012 Mon Sep 17 00:00:00 2001 From: Jonathan <47629418+Jonathan43@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:55:33 +0200 Subject: [PATCH] Update _tree.pxd The keyword 'nogil' should appear at the end of the function signature line. Placing it before 'except' or 'noexcept' will be disallowed in a future version of Cython. --- deepforest/tree/_tree.pxd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deepforest/tree/_tree.pxd b/deepforest/tree/_tree.pxd index 295ffca..1a6ce97 100644 --- a/deepforest/tree/_tree.pxd +++ b/deepforest/tree/_tree.pxd @@ -43,13 +43,13 @@ cdef class Tree: cdef SIZE_t value_stride # = n_outputs * max_n_classes # Methods - cdef SIZE_t _upd_parent(self, SIZE_t parent, bint is_left) nogil except -1 + cdef SIZE_t _upd_parent(self, SIZE_t parent, bint is_left) except -1 nogil cdef SIZE_t _add_node(self, SIZE_t parent, bint is_left, bint is_leaf, - SIZE_t feature, DTYPE_t threshold) nogil except -1 + SIZE_t feature, DTYPE_t threshold) except -1 nogil cdef int _resize(self, SIZE_t internal_capacity, - SIZE_t leaf_capacity) nogil except -1 - cdef int _resize_node_c(self, SIZE_t internal_capacity=*) nogil except -1 - cdef int _resize_value_c(self, SIZE_t leaf_capacity=*) nogil except -1 + SIZE_t leaf_capacity) except -1 nogil + cdef int _resize_node_c(self, SIZE_t internal_capacity=*) except -1 nogil + cdef int _resize_value_c(self, SIZE_t leaf_capacity=*) except -1 nogil cdef np.ndarray _get_value_ndarray(self) cdef np.ndarray _get_node_ndarray(self)