We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b86e278 commit 40a77b6Copy full SHA for 40a77b6
fmriprep/utils/misc.py
@@ -21,7 +21,8 @@ def split_and_rm_rotshear_func(in_file):
21
import nibabel as nb
22
from fmriprep.utils.misc import remove_rotation_and_shear
23
out_files = []
24
- for i, img in enumerate(iter_img(in_file)):
+ imgs = nb.four_to_three(nb.load(in_file))
25
+ for i, img in enumerate(imgs):
26
out_file = os.path.abspath('vol%04d.nii.gz' % i)
27
img = remove_rotation_and_shear(img)
28
img.to_filename(out_file)
0 commit comments