Skip to content

Commit 96b7772

Browse files
josephmjeoesteban
authored andcommitted
usedefault instead of use_default
1 parent 9d067c3 commit 96b7772

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

nipype/interfaces/mrtrix3/preprocess.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class MRDeGibbsInputSpec(MRTrix3BaseInputSpec):
9292
desc='input DWI image')
9393
axes = traits.ListInt(
9494
default_value=[0, 1],
95-
use_default=True,
95+
usedefault=True,
9696
sep=',',
9797
minlen=2,
9898
maxlen=2,
@@ -101,18 +101,18 @@ class MRDeGibbsInputSpec(MRTrix3BaseInputSpec):
101101
'coronal = 0,2; sagittal = 1,2')
102102
nshifts = traits.Int(
103103
default_value=20,
104-
use_default=True,
104+
usedefault=True,
105105
argstr='-nshifts %d',
106106
desc='discretization of subpixel spacing (default = 20)')
107107
minW = traits.Int(
108108
default_value=1,
109-
use_default=True,
109+
usedefault=True,
110110
argstr='-minW %d',
111111
desc='left border of window used for total variation (TV) computation '
112112
'(default = 1)')
113113
maxW = traits.Int(
114114
default_value=3,
115-
use_default=True,
115+
usedefault=True,
116116
argstr='-maxW %d',
117117
desc='right border of window used for total variation (TV) computation '
118118
'(default = 3)')
@@ -159,7 +159,7 @@ class MRDeGibbs(MRTrix3Base):
159159
>>> unring = mrt.MRDeGibbs()
160160
>>> unring.inputs.in_file = 'dwi.mif'
161161
>>> 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'
163163
>>> unring.run() # doctest: +SKIP
164164
"""
165165

@@ -180,10 +180,12 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
180180
desc='input mask image for bias field estimation')
181181
use_ants = traits.Bool(
182182
argstr='-ants',
183+
mandatory=True,
183184
desc='use ANTS N4 to estimate the inhomogeneity field',
184185
xor=['use_fsl'])
185186
use_fsl = traits.Bool(
186187
argstr='-fsl',
188+
mandatory=True,
187189
desc='use FSL FAST to estimate the inhomogeneity field',
188190
xor=['use_ants'],
189191
min_ver='5.0.10')

nipype/interfaces/mrtrix3/tests/test_auto_DWIBiasCorrect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ def test_DWIBiasCorrect_inputs():
4444
),
4545
use_ants=dict(
4646
argstr='-ants',
47+
mandatory=True,
4748
xor=['use_fsl'],
4849
),
4950
use_fsl=dict(
5051
argstr='-fsl',
5152
min_ver='5.0.10',
53+
mandatory=True,
5254
xor=['use_ants'],
5355
),
5456
)

nipype/interfaces/mrtrix3/tests/test_auto_MRDeGibbs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_MRDeGibbs_inputs():
1111
maxlen=2,
1212
minlen=2,
1313
sep=',',
14-
use_default=True,
14+
usedefault=True,
1515
),
1616
bval_scale=dict(argstr='-bvalue_scaling %s', ),
1717
environ=dict(
@@ -29,15 +29,15 @@ def test_MRDeGibbs_inputs():
2929
),
3030
maxW=dict(
3131
argstr='-maxW %d',
32-
use_default=True,
32+
usedefault=True,
3333
),
3434
minW=dict(
3535
argstr='-minW %d',
36-
use_default=True,
36+
usedefault=True,
3737
),
3838
nshifts=dict(
3939
argstr='-nshifts %d',
40-
use_default=True,
40+
usedefault=True,
4141
),
4242
nthreads=dict(
4343
argstr='-nthreads %d',

0 commit comments

Comments
 (0)