Skip to content

Commit 8e8c25d

Browse files
authored
fix right argument for sampling
1 parent 77a10a9 commit 8e8c25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synaptic_reconstruction/imod/to_imod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def coords_and_rads(prop):
137137

138138
if estimate_radius_2d:
139139
if resolution:
140-
dists = np.array([distance_transform_edt(ma, sampling=resolution) for ma in mask])
140+
dists = np.array([distance_transform_edt(ma, sampling=resolution[1:]) for ma in mask])
141141
else:
142142
dists = np.array([distance_transform_edt(ma) for ma in mask])
143143
else:

0 commit comments

Comments
 (0)