Skip to content

Commit 963aee4

Browse files
committed
FIX: Remove doubled-up fix for divide-by-zero warning
1 parent 3694a9a commit 963aee4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

nibabel/processing.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,6 @@ def smooth_image(img,
302302
# Voxel sizes
303303
RZS = img.affine[:, :n_dim]
304304
vox = np.sqrt(np.sum(RZS ** 2, 0))
305-
# Avoid divisions by zero for 4+D images
306-
vox[3:] = 1
307305
# Smoothing in terms of voxels
308306
vox_fwhm = fwhm / vox
309307
vox_sd = fwhm2sigma(vox_fwhm)

0 commit comments

Comments
 (0)