Skip to content

Commit 3703bba

Browse files
josephmjeoesteban
authored andcommitted
usedefault instead of use_default
1 parent f349baa commit 3703bba

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
@@ -54,11 +54,13 @@ def test_DWIBiasCorrect_inputs():
5454
),
5555
use_ants=dict(
5656
argstr='-ants',
57+
mandatory=True,
5758
xor=['use_fsl'],
5859
),
5960
use_fsl=dict(
6061
argstr='-fsl',
6162
min_ver='5.0.10',
63+
mandatory=True,
6264
xor=['use_ants'],
6365
),
6466
)

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(
@@ -40,15 +40,15 @@ def test_MRDeGibbs_inputs():
4040
),
4141
maxW=dict(
4242
argstr='-maxW %d',
43-
use_default=True,
43+
usedefault=True,
4444
),
4545
minW=dict(
4646
argstr='-minW %d',
47-
use_default=True,
47+
usedefault=True,
4848
),
4949
nshifts=dict(
5050
argstr='-nshifts %d',
51-
use_default=True,
51+
usedefault=True,
5252
),
5353
nthreads=dict(
5454
argstr='-nthreads %d',

0 commit comments

Comments
 (0)