Skip to content

Commit c101732

Browse files
committed
one comment
1 parent 86c33f2 commit c101732

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hdbscan/_hdbscan_tree.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,8 @@ cdef np.ndarray[np.intp_t, ndim=1] do_labelling(
516516
result[n] = -1
517517
elif cluster == root_cluster:
518518
if len(clusters) == 1 and allow_single_cluster and cluster in cluster_label_map:
519-
# check if `cluster` still exists in `cluster_label_map` was not pruned by
520-
# max_cluster_size or cluster_selection_epsilon_max before executing this
519+
# check if `cluster` still exists in `cluster_label_map` and that it was not pruned
520+
# by `max_cluster_size` or `cluster_selection_epsilon_max` before executing this
521521
if cluster_selection_epsilon != 0.0:
522522
if tree['lambda_val'][tree['child'] == n] >= 1 / cluster_selection_epsilon:
523523
result[n] = cluster_label_map[cluster]

0 commit comments

Comments
 (0)