Skip to content

Commit 40a77b6

Browse files
oestebanchrisgorgo
authored andcommitted
Update fmriprep/utils/misc.py
1 parent b86e278 commit 40a77b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fmriprep/utils/misc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def split_and_rm_rotshear_func(in_file):
2121
import nibabel as nb
2222
from fmriprep.utils.misc import remove_rotation_and_shear
2323
out_files = []
24-
for i, img in enumerate(iter_img(in_file)):
24+
imgs = nb.four_to_three(nb.load(in_file))
25+
for i, img in enumerate(imgs):
2526
out_file = os.path.abspath('vol%04d.nii.gz' % i)
2627
img = remove_rotation_and_shear(img)
2728
img.to_filename(out_file)

0 commit comments

Comments
 (0)