Skip to content

Commit 10476d0

Browse files
committed
added fix for #1335 (comment)
1 parent e8c0347 commit 10476d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/dipy/preprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def resample_proxy(in_file, order=3, new_zooms=None, out_file=None):
175175
"""
176176
Performs regridding of an image to set isotropic voxel sizes using dipy.
177177
"""
178-
from dipy.align.aniso2iso import resample
178+
from dipy.align.reslice import reslice
179179

180180
if out_file is None:
181181
fname, fext = op.splitext(op.basename(in_file))
@@ -197,7 +197,7 @@ def resample_proxy(in_file, order=3, new_zooms=None, out_file=None):
197197
if np.all(im_zooms == new_zooms):
198198
return in_file
199199

200-
data2, affine2 = resample(data, affine, im_zooms, new_zooms, order=order)
200+
data2, affine2 = reslice(data, affine, im_zooms, new_zooms, order=order)
201201
tmp_zooms = np.array(hdr.get_zooms())
202202
tmp_zooms[:3] = new_zooms[0]
203203
hdr.set_zooms(tuple(tmp_zooms))

0 commit comments

Comments
 (0)