Skip to content

Commit 4aaffae

Browse files
committed
fixed #722
1 parent 21632a7 commit 4aaffae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ class VolregInputSpec(AFNICommandInputSpec):
560560
' by \'n\' voxels during rotations',
561561
argstr='-zpad %d',
562562
position=-5)
563-
md1dfile = File(desc='max displacement output file',
564-
argstr='-maxdisp1D %s',
565-
position=-4)
563+
md1d_file = File(name_template='%s_md.1D', desc='max displacement output file',
564+
argstr='-maxdisp1D %s', name_source="in_file",
565+
keep_extension=True, position=-4)
566566
oned_file = File(name_template='%s.1D', desc='1D movement parameters output file',
567567
argstr='-1Dfile %s',
568568
name_source="in_file",
@@ -597,7 +597,7 @@ class Volreg(AFNICommand):
597597
>>> volreg.inputs.zpad = 4
598598
>>> volreg.inputs.outputtype = "NIFTI"
599599
>>> volreg.cmdline #doctest: +ELLIPSIS
600-
'3dvolreg -Fourier -twopass -1Dfile functional.1D -prefix functional_volreg.nii -zpad 4 functional.nii'
600+
'3dvolreg -Fourier -twopass -1Dfile functional.1D -prefix functional_volreg.nii -zpad 4 -maxdisp1D functional_md.1D functional.nii'
601601
>>> res = volreg.run() # doctest: +SKIP
602602
603603
"""

0 commit comments

Comments
 (0)