Skip to content

Commit

Permalink
Try pinning cython as less than 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Jul 17, 2023
1 parent e2e80ad commit 6d90908
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hdbscan/_hdbscan_tree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <np.intp_t> int(hierarchy[left - num_points][3])
left_count = <np.intp_t> hierarchy[left - num_points][3]
else:
left_count = 1

if right >= num_points:
right_count = <np.intp_t> int(hierarchy[right - num_points][3])
right_count = <np.intp_t> hierarchy[right - num_points][3]
else:
right_count = 1

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cython>=0.27
cython>=0.27,<3
numpy>=1.20
scipy>= 1.0
scikit-learn>=0.20
Expand Down

0 comments on commit 6d90908

Please sign in to comment.