From 7c5df8dd40977b5c6e57a5414c80e8fe554d7448 Mon Sep 17 00:00:00 2001 From: Dylan Nielson Date: Mon, 8 Jan 2024 12:08:12 -0500 Subject: [PATCH] fix dtypes for clustering --- contarg/clustering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contarg/clustering.py b/contarg/clustering.py index 6b7386c..ebb9a64 100644 --- a/contarg/clustering.py +++ b/contarg/clustering.py @@ -146,7 +146,7 @@ def repdist_tree(X, X_for_connected_components, connectivity, if return_distance: distances = np.empty(n_nodes - n_samples) - not_visited = np.empty(n_nodes, dtype=np.int8, order="C") + not_visited = np.empty(n_nodes, dtype=bool, order="C") # recursive merge loop for k in range(n_samples, n_nodes):