Skip to content

Commit 1ddd084

Browse files
committed
FIX: Determine suffix from orientation
1 parent 1073bc0 commit 1ddd084

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def _run_interface(self, runtime):
5757

5858
# Image may be reoriented
5959
if reoriented is not orig_img:
60-
out_name = fname_presuffix(fname, suffix='_ras',
60+
suffix = '_' + self.inputs.orientation.lower()
61+
out_name = fname_presuffix(fname, suffix=suffix,
6162
newpath=runtime.cwd)
6263
reoriented.to_filename(out_name)
6364
else:

0 commit comments

Comments
 (0)