Skip to content

Commit 54400ef

Browse files
committed
Merge remote-tracking branch 'origin/cat12_sanlm' into cat12_sanlm
2 parents 5766e9d + d737a20 commit 54400ef

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

nipype/interfaces/cat12/preprocess.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ class CAT12SANLMDenoising(SPMCommand):
692692
--------
693693
>>> from nipype.interfaces import cat12
694694
>>> c = cat12.CAT12SANLMDenoising()
695-
>>> c.inputs.in_files='sub-test_FLAIR.nii'
695+
>>> c.inputs.in_files='anatomical.nii'
696696
>>> c.run()
697697
"""
698698

@@ -719,11 +719,10 @@ def _format_arg(self, opt, spec, val):
719719

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

729728

0 commit comments

Comments
 (0)