From 3b19680de151c7a963e947efa5cbe58a0ca6c87f Mon Sep 17 00:00:00 2001 From: Matthew Scicluna Date: Fri, 9 Sep 2022 11:32:04 -0400 Subject: [PATCH] changed index over initial clusters --- multiscale_phate/condense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiscale_phate/condense.py b/multiscale_phate/condense.py index 97fc560..cddaf11 100644 --- a/multiscale_phate/condense.py +++ b/multiscale_phate/condense.py @@ -120,7 +120,7 @@ def condense(X, clusters, scale, epsilon, merge_threshold, n_jobs, random_state= N = X.shape[0] - for c in range(len(np.unique(clusters))): + for c in np.unique(clusters): loc = np.where(c == clusters)[0] X_cont.append(list(loc)) X_1 = X.copy()