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 @@ -54,11 +54,13 @@ def test_DWIBiasCorrect_inputs():
54
54
),
55
55
use_ants = dict (
56
56
argstr = '-ants' ,
57
+ mandatory = True ,
57
58
xor = ['use_fsl' ],
58
59
),
59
60
use_fsl = dict (
60
61
argstr = '-fsl' ,
61
62
min_ver = '5.0.10' ,
63
+ mandatory = True ,
62
64
xor = ['use_ants' ],
63
65
),
64
66
)
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 (
@@ -40,15 +40,15 @@ def test_MRDeGibbs_inputs():
40
40
),
41
41
maxW = dict (
42
42
argstr = '-maxW %d' ,
43
- use_default = True ,
43
+ usedefault = True ,
44
44
),
45
45
minW = dict (
46
46
argstr = '-minW %d' ,
47
- use_default = True ,
47
+ usedefault = True ,
48
48
),
49
49
nshifts = dict (
50
50
argstr = '-nshifts %d' ,
51
- use_default = True ,
51
+ usedefault = True ,
52
52
),
53
53
nthreads = dict (
54
54
argstr = '-nthreads %d' ,
You can’t perform that action at this time.
0 commit comments