From aa99a71daa070b64b45018378c9d4bdd9c28f686 Mon Sep 17 00:00:00 2001 From: Leland McInnes Date: Fri, 24 May 2024 08:12:50 -0400 Subject: [PATCH] Update _hdbscan_tree.pyx --- hdbscan/_hdbscan_tree.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdbscan/_hdbscan_tree.pyx b/hdbscan/_hdbscan_tree.pyx index 842bfa2f..d3c25191 100644 --- a/hdbscan/_hdbscan_tree.pyx +++ b/hdbscan/_hdbscan_tree.pyx @@ -91,7 +91,7 @@ cpdef np.ndarray condense_tree(np.ndarray[np.double_t, ndim=2] hierarchy, relabel = np.empty(root + 1, dtype=np.intp) relabel[root] = num_points result_list = [] - ignore = np.zeros(len(node_list), dtype=int) + ignore = np.zeros(len(node_list), dtype=np.int8) for node in node_list: if ignore[node] or node < num_points: