Skip to content

Commit 56d6ea7

Browse files
authored
Merge pull request #142 from lucile-hashimoto/master
[DEBUG] fiedler length keep 1st element only
2 parents 8a043f5 + e299596 commit 56d6ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slam/watershed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def normalize_thresholds(mesh, voronoi, thresh_dist=20.0,
107107
fielder = differential_geometry.mesh_laplacian_eigenvectors(mesh, 1)
108108
imin = fielder.argmin()
109109
imax = fielder.argmax()
110-
min_mesh_fiedler_length = geodesics.compute_gdist(mesh, imin, imax)
110+
min_mesh_fiedler_length = geodesics.compute_gdist(mesh, imin, imax)[0] # extract single element out of array
111111
mesh_area = np.sum(voronoi)
112112

113113
# Set group average values

0 commit comments

Comments
 (0)