@@ -199,16 +199,12 @@ class TOPUPInputSpec(FSLCommandInputSpec):
199199 # TODO: the following traits admit values separated by commas, one value
200200 # per registration level inside topup.
201201 warp_res = traits .Float (
202- 10.0 , usedefault = True ,
203202 argstr = '--warpres=%f' ,
204203 desc = ('(approximate) resolution (in mm) of warp '
205- 'basis for the different sub-sampling levels'
206- '.' ))
207- subsamp = traits .Int (1 , usedefault = True ,
208- argstr = '--subsamp=%d' , desc = 'sub-sampling scheme' )
204+ 'basis for the different sub-sampling levels' ))
205+ subsamp = traits .Int (argstr = '--subsamp=%d' ,
206+ desc = 'sub-sampling scheme' )
209207 fwhm = traits .Float (
210- 8.0 ,
211- usedefault = True ,
212208 argstr = '--fwhm=%f' ,
213209 desc = 'FWHM (in mm) of gaussian smoothing kernel' )
214210 config = traits .String (
@@ -218,13 +214,12 @@ class TOPUPInputSpec(FSLCommandInputSpec):
218214 desc = ('Name of config file specifying command line '
219215 'arguments' ))
220216 max_iter = traits .Int (
221- 5 , usedefault = True ,
222- argstr = '--miter=%d' , desc = 'max # of non-linear iterations' )
217+ argstr = '--miter=%d' ,
218+ desc = 'max # of non-linear iterations' )
223219 reg_lambda = traits .Float (
224- 1.0 , usedefault = True ,
225- argstr = '--miter=%0.f' ,
226- desc = ('lambda weighting value of the '
227- 'regularisation term' ))
220+ argstr = '--lambda=%0.f' ,
221+ desc = ('Weight of regularisation, default '
222+ 'depending on --ssqlambda and --regmod switches.' ))
228223 ssqlambda = traits .Enum (
229224 1 ,
230225 0 ,
@@ -259,7 +254,6 @@ class TOPUPInputSpec(FSLCommandInputSpec):
259254 desc = ('Minimisation method 0=Levenberg-Marquardt, '
260255 '1=Scaled Conjugate Gradient' ))
261256 splineorder = traits .Int (
262- 3 , usedefault = True ,
263257 argstr = '--splineorder=%d' ,
264258 desc = ('order of spline, 2->Qadratic spline, '
265259 '3->Cubic spline' ))
@@ -321,11 +315,9 @@ class TOPUP(FSLCommand):
321315 >>> topup.inputs.output_type = "NIFTI_GZ"
322316 >>> topup.cmdline # doctest: +ELLIPSIS
323317 'topup --config=b02b0.cnf --datain=topup_encoding.txt \
324- --fwhm=8.000000 --imain=b0_b0rev.nii --miter=5 \
325- --out=b0_b0rev_base --iout=b0_b0rev_corrected.nii.gz \
318+ --imain=b0_b0rev.nii --out=b0_b0rev_base --iout=b0_b0rev_corrected.nii.gz \
326319 --fout=b0_b0rev_field.nii.gz --jacout=jac --logout=b0_b0rev_topup.log \
327- --rbmout=xfm --dfout=warpfield --miter=1 --splineorder=3 --subsamp=1 \
328- --warpres=10.000000'
320+ --rbmout=xfm --dfout=warpfield'
329321 >>> res = topup.run() # doctest: +SKIP
330322
331323 """
0 commit comments