Skip to content

Commit e405c93

Browse files
josephmjeoesteban
authored andcommitted
address suggested changes
1 parent e3d8787 commit e405c93

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

nipype/interfaces/mrtrix3/preprocess.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,19 @@ class MRDeGibbsInputSpec(MRTrix3BaseInputSpec):
100100
desc='indicate the plane in which the data was acquired (axial = 0,1; '
101101
'coronal = 0,2; sagittal = 1,2')
102102
nshifts = traits.Int(
103-
20,
103+
default_value=20,
104+
use_default=True,
104105
argstr='-nshifts %d',
105106
desc='discretization of subpixel spacing (default = 20)')
106107
minW = traits.Int(
107-
1,
108+
default_value=1,
109+
use_default=True,
108110
argstr='-minW %d',
109111
desc='left border of window used for total variation (TV) computation '
110112
'(default = 1)')
111113
maxW = traits.Int(
112-
3,
114+
default_value=3,
115+
use_default=True,
113116
argstr='-maxW %d',
114117
desc='right border of window used for total variation (TV) computation '
115118
'(default = 3)')
@@ -156,7 +159,7 @@ class MRDeGibbs(MRTrix3Base):
156159
>>> unring = mrt.MRDeGibbs()
157160
>>> unring.inputs.in_file = 'dwi.mif'
158161
>>> 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'
160163
>>> unring.run() # doctest: +SKIP
161164
"""
162165

nipype/interfaces/mrtrix3/tests/test_auto_MRDeGibbs.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ def test_MRDeGibbs_inputs():
1111
maxlen=2,
1212
minlen=2,
1313
sep=',',
14+
use_default=True,
1415
),
1516
bval_scale=dict(argstr='-bvalue_scaling %s', ),
1617
environ=dict(
@@ -37,9 +38,18 @@ def test_MRDeGibbs_inputs():
3738
mandatory=True,
3839
position=-2,
3940
),
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+
),
4353
nthreads=dict(
4454
argstr='-nthreads %d',
4555
nohash=True,

0 commit comments

Comments
 (0)