Skip to content

Commit 7918476

Browse files
Likely inconsequential bug fix in direction estimator
1 parent 7b566ef commit 7918476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spine/utils/gnn/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ def cluster_direction(voxels: nb.float64[:,:],
10191019
if (w[0] + w[1]) / w[2] > 1e-6 else 0.
10201020

10211021
# If the value is the same as the previous, choose this one
1022-
if dist_mat[i] == dist_mat[i-1]:
1022+
if labels[i] == labels[i-1]:
10231023
labels[i-1] = -1.
10241024

10251025
# Increment mean and matrix

0 commit comments

Comments
 (0)