Skip to content

Commit e6c6bb6

Browse files
committed
fix: afni volreg to use gen_fname
1 parent 66c333f commit e6c6bb6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,8 @@ def _list_outputs(self):
722722
outputs['out_file'] = os.path.abspath(self.inputs.out_file)
723723

724724
if not isdefined(self.inputs.oned_file):
725-
outputs['oned_file'] = fname_presuffix(
726-
self.inputs.in_file,
727-
suffix = '%s.1D'%self.inputs.suffix,
728-
use_ext = False, newpath = os.getcwd())
725+
outputs['oned_file'] = self._gen_fname(self.inputs.in_file,
726+
suffix = '%s.1D'%self.inputs.suffix)
729727
else:
730728
outputs['oned_file'] = os.path.abspath(self.inputs.oned_file)
731729
return outputs

0 commit comments

Comments
 (0)