Skip to content

Commit 64b055e

Browse files
authored
Merge pull request #264 from annesylvie/patch-1
Wraps output of condensed_tree's minimum in a list
2 parents 2ed7f74 + c331a90 commit 64b055e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdbscan/plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _get_leaves(condensed_tree):
4343
cluster_tree = condensed_tree[condensed_tree['child_size'] > 1]
4444
if cluster_tree.shape[0] == 0:
4545
# Return the only cluster, the root
46-
return condensed_tree['parent'].min()
46+
return [condensed_tree['parent'].min()]
4747

4848
root = cluster_tree['parent'].min()
4949
return _recurse_leaf_dfs(cluster_tree, root)

0 commit comments

Comments
 (0)