Skip to content

Commit 3e6467f

Browse files
committed
fixing argstr for reg_lambda input in TOPUP
1 parent a7ab541 commit 3e6467f

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

nipype/interfaces/fsl/epi.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,9 @@ class TOPUPInputSpec(FSLCommandInputSpec):
221221
5, usedefault=True,
222222
argstr='--miter=%d', desc='max # of non-linear iterations')
223223
reg_lambda = traits.Float(
224-
1.0, usedefault=True,
225-
argstr='--miter=%0.f',
226-
desc=('lambda weighting value of the '
227-
'regularisation term'))
224+
argstr='--lambda=%0.f',
225+
desc=('Weight of regularisation, default '
226+
'depending on --ssqlambda and --regmod switches.'))
228227
ssqlambda = traits.Enum(
229228
1,
230229
0,
@@ -324,8 +323,7 @@ class TOPUP(FSLCommand):
324323
--fwhm=8.000000 --imain=b0_b0rev.nii --miter=5 \
325324
--out=b0_b0rev_base --iout=b0_b0rev_corrected.nii.gz \
326325
--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'
326+
--rbmout=xfm --dfout=warpfield --splineorder=3 --subsamp=1 --warpres=10.000000'
329327
>>> res = topup.run() # doctest: +SKIP
330328
331329
"""

nipype/interfaces/fsl/tests/test_auto_TOPUP.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ def test_TOPUP_inputs():
8787
requires=['encoding_direction'],
8888
xor=['encoding_file'],
8989
),
90-
reg_lambda=dict(
91-
argstr='--miter=%0.f',
92-
usedefault=True,
93-
),
90+
reg_lambda=dict(argstr='--lambda=%0.f', ),
9491
regmod=dict(argstr='--regmod=%s', ),
9592
regrid=dict(argstr='--regrid=%d', ),
9693
scale=dict(argstr='--scale=%d', ),

0 commit comments

Comments
 (0)