Skip to content

Commit

Permalink
Update aggregation_cm.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxinye authored Oct 20, 2023
1 parent c808021 commit 1dfff82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classix/aggregation_cm.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1dfff82

Please sign in to comment.