Skip to content

Commit 2087206

Browse files
authored
Update fields.py
1 parent d4824da commit 2087206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spatial_maps/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def separate_fields_by_laplace_of_gaussian(rate_map, sigma=2, minimum_field_area
182182
in rate_map. The fill values are in range(1,nFields + 1), sorted by size of the
183183
field (sum of all field values) with 0 elsewhere.
184184
"""
185-
ndimage.gaussian_laplace(rate_map, sigma)
185+
l = ndimage.gaussian_laplace(rate_map, sigma)
186186
l[l > 0] = 0
187187

188188
# Labels areas of the laplacian not connected by values > 0.

0 commit comments

Comments
 (0)