From 6d9090847930f98916253806e828a7afc1fa048e Mon Sep 17 00:00:00 2001 From: Leland McInnes Date: Mon, 17 Jul 2023 14:50:41 -0400 Subject: [PATCH] Try pinning cython as less than 3 --- hdbscan/_hdbscan_tree.pyx | 4 ++-- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hdbscan/_hdbscan_tree.pyx b/hdbscan/_hdbscan_tree.pyx index 31ae7dfd..84ffde61 100644 --- a/hdbscan/_hdbscan_tree.pyx +++ b/hdbscan/_hdbscan_tree.pyx @@ -106,12 +106,12 @@ cpdef np.ndarray condense_tree(np.ndarray[np.double_t, ndim=2] hierarchy, lambda_value = INFTY if left >= num_points: - left_count = int(hierarchy[left - num_points][3]) + left_count = hierarchy[left - num_points][3] else: left_count = 1 if right >= num_points: - right_count = int(hierarchy[right - num_points][3]) + right_count = hierarchy[right - num_points][3] else: right_count = 1 diff --git a/requirements.txt b/requirements.txt index 487cfe7b..3532921c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -cython>=0.27 +cython>=0.27,<3 numpy>=1.20 scipy>= 1.0 scikit-learn>=0.20