Skip to content

Commit 6f55b53

Browse files
committed
fix: Address deprecation warning
1 parent f418243 commit 6f55b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdcflows/utils/epimanip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def epi_mask(in_file, out_file=None):
313313
maxnorm = np.percentile(closed[closed > 0], 90)
314314
closed = np.clip(closed, a_min=0.0, a_max=maxnorm)
315315
# Calculate index of center of masses
316-
cm = tuple(np.round(ndimage.measurements.center_of_mass(closed)).astype(int))
316+
cm = tuple(np.round(ndimage.center_of_mass(closed)).astype(int))
317317
# Erode the picture of the brain by a lot
318318
eroded = ndimage.grey_erosion(closed, structure=ball(5))
319319
# Calculate the residual

0 commit comments

Comments
 (0)