Skip to content

Commit 264a8b6

Browse files
committed
mrtrix3.FitTensor: switch back to single spec, usedefault=False
1 parent 76697c5 commit 264a8b6

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

nipype/interfaces/mrtrix3/reconst.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ class FitTensorInputSpec(MRTrix3BaseInputSpec):
3939
'rician',
4040
argstr='-method %s',
4141
desc=('select method used to perform the fitting'))
42-
43-
44-
class FitTensorInputSpec0_3_13(FitTensorInputSpec):
4542
reg_term = traits.Float(
46-
5.e3, usedefault=True,
43+
5.e3,
4744
argstr='-regularisation %f',
4845
max_ver='0.3.13',
4946
desc=('specify the strength of the regularisation term on the '
@@ -75,10 +72,7 @@ class FitTensor(MRTrix3Base):
7572
"""
7673

7774
_cmd = 'dwi2tensor'
78-
if Info.looseversion() < LooseVersion("0.3.14"):
79-
input_spec = FitTensorInputSpec0_3_13
80-
else:
81-
input_spec = FitTensorInputSpec
75+
input_spec = FitTensorInputSpec
8276
output_spec = FitTensorOutputSpec
8377

8478
def _list_outputs(self):

nipype/interfaces/mrtrix3/tests/test_auto_FitTensor.py

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def test_FitTensor_inputs():
3535
reg_term=dict(
3636
argstr='-regularisation %f',
3737
max_ver='0.3.13',
38-
usedefault=True,
3938
),
4039
)
4140
inputs = FitTensor.input_spec()

0 commit comments

Comments
 (0)