Skip to content

Commit d737a20

Browse files
0rC0effigies
andauthored
Update nipype/interfaces/cat12/preprocess.py
use fname_presuffix for output file Co-authored-by: Chris Markiewicz <[email protected]>
1 parent 0b73002 commit d737a20

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

nipype/interfaces/cat12/preprocess.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -720,11 +720,10 @@ def _format_arg(self, opt, spec, val):
720720

721721
def _list_outputs(self):
722722
outputs = self._outputs().get()
723-
pth, base, ext = split_filename(self.inputs.in_files[0])
724-
outputs['out_file'] = os.path.join(os.getcwd(), self.inputs.filename_prefix +
725-
base +
726-
self.inputs.filename_suffix +
727-
ext)
723+
outputs['out_file'] = fname_presuffix(self.inputs.in_files[0],
724+
newpath=os.getcwd(),
725+
prefix=self.inputs.filename_prefix,
726+
suffix=self.inputs.filename_suffix)
728727
return outputs
729728

730729

0 commit comments

Comments
 (0)