File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
nipype/interfaces/mrtrix3 Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ class MRDeGibbsInputSpec(MRTrix3BaseInputSpec):
92
92
desc = 'input DWI image' )
93
93
axes = traits .ListInt (
94
94
default_value = [0 , 1 ],
95
- use_default = True ,
95
+ usedefault = True ,
96
96
sep = ',' ,
97
97
minlen = 2 ,
98
98
maxlen = 2 ,
@@ -101,18 +101,18 @@ class MRDeGibbsInputSpec(MRTrix3BaseInputSpec):
101
101
'coronal = 0,2; sagittal = 1,2' )
102
102
nshifts = traits .Int (
103
103
default_value = 20 ,
104
- use_default = True ,
104
+ usedefault = True ,
105
105
argstr = '-nshifts %d' ,
106
106
desc = 'discretization of subpixel spacing (default = 20)' )
107
107
minW = traits .Int (
108
108
default_value = 1 ,
109
- use_default = True ,
109
+ usedefault = True ,
110
110
argstr = '-minW %d' ,
111
111
desc = 'left border of window used for total variation (TV) computation '
112
112
'(default = 1)' )
113
113
maxW = traits .Int (
114
114
default_value = 3 ,
115
- use_default = True ,
115
+ usedefault = True ,
116
116
argstr = '-maxW %d' ,
117
117
desc = 'right border of window used for total variation (TV) computation '
118
118
'(default = 3)' )
@@ -159,7 +159,7 @@ class MRDeGibbs(MRTrix3Base):
159
159
>>> unring = mrt.MRDeGibbs()
160
160
>>> unring.inputs.in_file = 'dwi.mif'
161
161
>>> unring.cmdline
162
- 'mrdegibbs dwi.mif dwi_unr.mif'
162
+ 'mrdegibbs -axes 0,1 -maxW 3 -minW 1 -nshifts 20 dwi.mif dwi_unr.mif'
163
163
>>> unring.run() # doctest: +SKIP
164
164
"""
165
165
@@ -180,10 +180,12 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
180
180
desc = 'input mask image for bias field estimation' )
181
181
use_ants = traits .Bool (
182
182
argstr = '-ants' ,
183
+ mandatory = True ,
183
184
desc = 'use ANTS N4 to estimate the inhomogeneity field' ,
184
185
xor = ['use_fsl' ])
185
186
use_fsl = traits .Bool (
186
187
argstr = '-fsl' ,
188
+ mandatory = True ,
187
189
desc = 'use FSL FAST to estimate the inhomogeneity field' ,
188
190
xor = ['use_ants' ],
189
191
min_ver = '5.0.10' )
Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ def test_DWIBiasCorrect_inputs():
44
44
),
45
45
use_ants = dict (
46
46
argstr = '-ants' ,
47
+ mandatory = True ,
47
48
xor = ['use_fsl' ],
48
49
),
49
50
use_fsl = dict (
50
51
argstr = '-fsl' ,
51
52
min_ver = '5.0.10' ,
53
+ mandatory = True ,
52
54
xor = ['use_ants' ],
53
55
),
54
56
)
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def test_MRDeGibbs_inputs():
11
11
maxlen = 2 ,
12
12
minlen = 2 ,
13
13
sep = ',' ,
14
- use_default = True ,
14
+ usedefault = True ,
15
15
),
16
16
bval_scale = dict (argstr = '-bvalue_scaling %s' , ),
17
17
environ = dict (
@@ -29,15 +29,15 @@ def test_MRDeGibbs_inputs():
29
29
),
30
30
maxW = dict (
31
31
argstr = '-maxW %d' ,
32
- use_default = True ,
32
+ usedefault = True ,
33
33
),
34
34
minW = dict (
35
35
argstr = '-minW %d' ,
36
- use_default = True ,
36
+ usedefault = True ,
37
37
),
38
38
nshifts = dict (
39
39
argstr = '-nshifts %d' ,
40
- use_default = True ,
40
+ usedefault = True ,
41
41
),
42
42
nthreads = dict (
43
43
argstr = '-nthreads %d' ,
You can’t perform that action at this time.
0 commit comments