From 1dfff822db996c3c707a40bdd773870ccabb3939 Mon Sep 17 00:00:00 2001 From: the null <42580530+chenxinye@users.noreply.github.com> Date: Fri, 20 Oct 2023 12:10:49 +0200 Subject: [PATCH] Update aggregation_cm.pyx --- classix/aggregation_cm.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classix/aggregation_cm.pyx b/classix/aggregation_cm.pyx index 1df4a691..46ac9d5e 100644 --- a/classix/aggregation_cm.pyx +++ b/classix/aggregation_cm.pyx @@ -118,7 +118,7 @@ cpdef precompute_aggregate(double[:,:] data, str sorting, double tol=0.5): for ii in range(i+1, len_ind): j = ind[ii] - if labels[j] != -1: + if labels[j] >= 0: continue if sort_vals[j] - sort_vals[sp] > tol: @@ -220,7 +220,7 @@ cpdef aggregate(double[:,:] data, str sorting, double tol=0.5): for ii in range(i+1, len_ind): j = ind[ii] - if labels[j] != -1: + if labels[j] >= 0: continue if sort_vals[j] - sort_vals[sp] > tol: