Skip to content

Commit d847b87

Browse files
authored
Update _hdbscan_tree.pyx
1 parent f98aefa commit d847b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdbscan/_hdbscan_tree.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ cpdef list get_cluster_tree_leaves(np.ndarray cluster_tree):
623623
cpdef np.intp_t traverse_upwards(np.ndarray cluster_tree, np.double_t cluster_selection_epsilon, np.intp_t leaf, np.intp_t allow_single_cluster):
624624

625625
root = cluster_tree['parent'].min()
626-
parent = cluster_tree[cluster_tree['child'] == leaf]['parent']
626+
parent = cluster_tree[cluster_tree['child'] == leaf]['parent'][0]
627627
if parent == root:
628628
if allow_single_cluster:
629629
return parent

0 commit comments

Comments
 (0)