File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -560,9 +560,9 @@ class VolregInputSpec(AFNICommandInputSpec):
560
560
' by \' n\' voxels during rotations' ,
561
561
argstr = '-zpad %d' ,
562
562
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 )
566
566
oned_file = File (name_template = '%s.1D' , desc = '1D movement parameters output file' ,
567
567
argstr = '-1Dfile %s' ,
568
568
name_source = "in_file" ,
@@ -597,7 +597,7 @@ class Volreg(AFNICommand):
597
597
>>> volreg.inputs.zpad = 4
598
598
>>> volreg.inputs.outputtype = "NIFTI"
599
599
>>> 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'
601
601
>>> res = volreg.run() # doctest: +SKIP
602
602
603
603
"""
Original file line number Diff line number Diff line change @@ -20,24 +20,27 @@ def test_Volreg_inputs():
20
20
args = dict (argstr = '%s' ,
21
21
),
22
22
outputtype = dict (),
23
- md1dfile = dict (position = - 4 ,
24
- argstr = '-maxdisp1D %s' ,
25
- ),
26
23
zpad = dict (position = - 5 ,
27
24
argstr = '-zpad %d' ,
28
25
),
29
26
terminal_output = dict (mandatory = True ,
30
27
nohash = True ,
31
28
),
32
- environ = dict (nohash = True ,
33
- usedefault = True ,
29
+ md1d_file = dict (name_source = 'in_file' ,
30
+ keep_extension = True ,
31
+ position = - 4 ,
32
+ name_template = '%s_md.1D' ,
33
+ argstr = '-maxdisp1D %s' ,
34
34
),
35
35
in_file = dict (position = - 1 ,
36
36
mandatory = True ,
37
37
argstr = '%s' ,
38
38
),
39
39
copyorigin = dict (argstr = '-twodup' ,
40
40
),
41
+ environ = dict (nohash = True ,
42
+ usedefault = True ,
43
+ ),
41
44
out_file = dict (name_source = 'in_file' ,
42
45
name_template = '%s_volreg' ,
43
46
argstr = '-prefix %s' ,
You can’t perform that action at this time.
0 commit comments