Skip to content

Commit 6d90908

Browse files
committed
Try pinning cython as less than 3
1 parent e2e80ad commit 6d90908

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hdbscan/_hdbscan_tree.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ cpdef np.ndarray condense_tree(np.ndarray[np.double_t, ndim=2] hierarchy,
106106
lambda_value = INFTY
107107

108108
if left >= num_points:
109-
left_count = <np.intp_t> int(hierarchy[left - num_points][3])
109+
left_count = <np.intp_t> hierarchy[left - num_points][3]
110110
else:
111111
left_count = 1
112112

113113
if right >= num_points:
114-
right_count = <np.intp_t> int(hierarchy[right - num_points][3])
114+
right_count = <np.intp_t> hierarchy[right - num_points][3]
115115
else:
116116
right_count = 1
117117

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cython>=0.27
1+
cython>=0.27,<3
22
numpy>=1.20
33
scipy>= 1.0
44
scikit-learn>=0.20

0 commit comments

Comments
 (0)