File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,18 @@ class ICA_AROMA(CommandLine):
120
120
>>> AROMA_obj.inputs.mask = 'mask.nii.gz'
121
121
>>> AROMA_obj.inputs.denoise_type = 'both'
122
122
>>> AROMA_obj.inputs.out_dir = 'ICA_testout'
123
- >>> AROMA_obj.cmdline
124
- 'ICA_AROMA.py -den both -warp warpfield.nii -i functional.nii -m mask.nii.gz -affmat func_to_struct.mat -mc fsl_mcflirt_movpar.txt -o ICA_testout'
123
+ >>> AROMA_obj.cmdline # doctest: +ELLIPSIS
124
+ 'ICA_AROMA.py -den both -warp warpfield.nii -i functional.nii -m mask.nii.gz -affmat func_to_struct.mat -mc fsl_mcflirt_movpar.txt -o .../ ICA_testout'
125
125
"""
126
126
_cmd = 'ICA_AROMA.py'
127
127
input_spec = ICA_AROMAInputSpec
128
128
output_spec = ICA_AROMAOutputSpec
129
129
130
+ def _format_arg (self , name , trait_spec , value ):
131
+ if name == 'out_dir' :
132
+ return trait_spec .argstr % os .path .abspath (value )
133
+ return super (ICA_AROMA , self )._format_arg (name , trait_spec , value )
134
+
130
135
def _list_outputs (self ):
131
136
outputs = self .output_spec ().get ()
132
137
outputs ['out_dir' ] = os .path .abspath (self .inputs .out_dir )
You can’t perform that action at this time.
0 commit comments