@@ -199,16 +199,12 @@ class TOPUPInputSpec(FSLCommandInputSpec):
199
199
# TODO: the following traits admit values separated by commas, one value
200
200
# per registration level inside topup.
201
201
warp_res = traits .Float (
202
- 10.0 , usedefault = True ,
203
202
argstr = '--warpres=%f' ,
204
203
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' )
209
207
fwhm = traits .Float (
210
- 8.0 ,
211
- usedefault = True ,
212
208
argstr = '--fwhm=%f' ,
213
209
desc = 'FWHM (in mm) of gaussian smoothing kernel' )
214
210
config = traits .String (
@@ -218,13 +214,12 @@ class TOPUPInputSpec(FSLCommandInputSpec):
218
214
desc = ('Name of config file specifying command line '
219
215
'arguments' ))
220
216
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' )
223
219
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.' ))
228
223
ssqlambda = traits .Enum (
229
224
1 ,
230
225
0 ,
@@ -259,7 +254,6 @@ class TOPUPInputSpec(FSLCommandInputSpec):
259
254
desc = ('Minimisation method 0=Levenberg-Marquardt, '
260
255
'1=Scaled Conjugate Gradient' ))
261
256
splineorder = traits .Int (
262
- 3 , usedefault = True ,
263
257
argstr = '--splineorder=%d' ,
264
258
desc = ('order of spline, 2->Qadratic spline, '
265
259
'3->Cubic spline' ))
@@ -321,11 +315,9 @@ class TOPUP(FSLCommand):
321
315
>>> topup.inputs.output_type = "NIFTI_GZ"
322
316
>>> topup.cmdline # doctest: +ELLIPSIS
323
317
'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 \
326
319
--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'
329
321
>>> res = topup.run() # doctest: +SKIP
330
322
331
323
"""
0 commit comments