File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed
nipype/interfaces/mrtrix3 Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,19 @@ class MRDeGibbsInputSpec(MRTrix3BaseInputSpec):
100
100
desc = 'indicate the plane in which the data was acquired (axial = 0,1; '
101
101
'coronal = 0,2; sagittal = 1,2' )
102
102
nshifts = traits .Int (
103
- 20 ,
103
+ default_value = 20 ,
104
+ use_default = True ,
104
105
argstr = '-nshifts %d' ,
105
106
desc = 'discretization of subpixel spacing (default = 20)' )
106
107
minW = traits .Int (
107
- 1 ,
108
+ default_value = 1 ,
109
+ use_default = True ,
108
110
argstr = '-minW %d' ,
109
111
desc = 'left border of window used for total variation (TV) computation '
110
112
'(default = 1)' )
111
113
maxW = traits .Int (
112
- 3 ,
114
+ default_value = 3 ,
115
+ use_default = True ,
113
116
argstr = '-maxW %d' ,
114
117
desc = 'right border of window used for total variation (TV) computation '
115
118
'(default = 3)' )
@@ -156,7 +159,7 @@ class MRDeGibbs(MRTrix3Base):
156
159
>>> unring = mrt.MRDeGibbs()
157
160
>>> unring.inputs.in_file = 'dwi.mif'
158
161
>>> unring.cmdline
159
- 'mrdegibbs dwi.mif dwi_unr.mif'
162
+ 'mrdegibbs -axes 0,1 -maxW 3 -minW 1 -nshifts 20 dwi.mif dwi_unr.mif'
160
163
>>> unring.run() # doctest: +SKIP
161
164
"""
162
165
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ def test_MRDeGibbs_inputs():
11
11
maxlen = 2 ,
12
12
minlen = 2 ,
13
13
sep = ',' ,
14
+ use_default = True ,
14
15
),
15
16
bval_scale = dict (argstr = '-bvalue_scaling %s' , ),
16
17
environ = dict (
@@ -37,9 +38,18 @@ def test_MRDeGibbs_inputs():
37
38
mandatory = True ,
38
39
position = - 2 ,
39
40
),
40
- maxW = dict (argstr = '-maxW %d' , ),
41
- minW = dict (argstr = '-minW %d' , ),
42
- nshifts = dict (argstr = '-nshifts %d' , ),
41
+ maxW = dict (
42
+ argstr = '-maxW %d' ,
43
+ use_default = True ,
44
+ ),
45
+ minW = dict (
46
+ argstr = '-minW %d' ,
47
+ use_default = True ,
48
+ ),
49
+ nshifts = dict (
50
+ argstr = '-nshifts %d' ,
51
+ use_default = True ,
52
+ ),
43
53
nthreads = dict (
44
54
argstr = '-nthreads %d' ,
45
55
nohash = True ,
You can’t perform that action at this time.
0 commit comments