Skip to content

Commit 7b566ef

Browse files
Raise invalid spread threshold for direction estimate radius optimizer
1 parent d8a64e5 commit 7b566ef

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
@@ -1016,7 +1016,7 @@ def cluster_direction(voxels: nb.float64[:,:],
10161016
# Get the eigenvalues, compute relative transverse spread
10171017
w, _ = np.linalg.eigh(covk)
10181018
labels[i] = np.sqrt(w[2] / (w[0] + w[1])) \
1019-
if (w[0] + w[1]) / w[2] > 1e-9 else 0.
1019+
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
10221022
if dist_mat[i] == dist_mat[i-1]:

0 commit comments

Comments
 (0)