Skip to content

Commit 17d4f98

Browse files
committed
Revert "Remove 'reg_term'/'regularisation' from dwi2tensor interface"
This reverts commit 6dabc88.
1 parent fbc73b5 commit 17d4f98

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nipype/interfaces/mrtrix3/reconst.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ class FitTensorInputSpec(MRTrix3BaseInputSpec):
3838
'rician',
3939
argstr='-method %s',
4040
desc=('select method used to perform the fitting'))
41+
reg_term = traits.Float(
42+
5.e3, usedefault=True,
43+
argstr='-regularisation %f',
44+
desc=('specify the strength of the regularisation term on the '
45+
'magnitude of the tensor elements (default = 5000). This '
46+
'only applies to the non-linear methods'))
4147

4248

4349
class FitTensorOutputSpec(TraitedSpec):
@@ -58,7 +64,8 @@ class FitTensor(MRTrix3Base):
5864
>>> tsr.inputs.in_mask = 'mask.nii.gz'
5965
>>> tsr.inputs.grad_fsl = ('bvecs', 'bvals')
6066
>>> tsr.cmdline # doctest: +ELLIPSIS
61-
'dwi2tensor -fslgrad bvecs bvals -mask mask.nii.gz dwi.mif dti.mif'
67+
'dwi2tensor -fslgrad bvecs bvals -mask mask.nii.gz \
68+
-regularisation 5000.000000 dwi.mif dti.mif'
6269
>>> tsr.run() # doctest: +SKIP
6370
"""
6471

0 commit comments

Comments
 (0)