Skip to content

Commit 14027c5

Browse files
author
Adam Richie-Halford
committed
Use os.path.basename for the fallback output_dir in EddyQuad._list_outputs()
1 parent f6b49f5 commit 14027c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ def _list_outputs(self):
13891389
# If the output directory isn't defined, the interface seems to use
13901390
# the default but not set its value in `self.inputs.output_dir`
13911391
if not isdefined(self.inputs.output_dir):
1392-
out_dir = os.path.abspath(self.inputs.base_name + '.qc.nii.gz')
1392+
out_dir = os.path.abspath(os.path.basename(self.inputs.base_name) + '.qc.nii.gz')
13931393
else:
13941394
out_dir = os.path.abspath(self.inputs.output_dir)
13951395

0 commit comments

Comments
 (0)