Skip to content

Commit bc32b8b

Browse files
committed
1 parent e9de427 commit bc32b8b

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
@@ -24,7 +24,8 @@ def split_and_rm_rotshear_func(in_file):
2424
imgs = nb.four_to_three(nb.load(in_file))
2525
for i, img in enumerate(imgs):
2626
out_file = os.path.abspath('vol%04d.nii.gz' % i)
27-
img = remove_rotation_and_shear(img)
27+
img = remove_rotation_and_shear(
28+
nb.as_closest_canonical(img))
2829
img.to_filename(out_file)
2930
out_files.append(out_file)
3031
return out_files

0 commit comments

Comments
 (0)