Skip to content

Commit 3f677eb

Browse files
committed
fixed gradient nonlinearities implementation
1 parent 588c7ef commit 3f677eb

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

nipype/interfaces/fsl/dti.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ def _list_outputs(self):
101101

102102

103103
class BEDPOSTXInputSpec(FSLXCommandInputSpec):
104-
gradnonlin = File(exists=True, argstr='--gradnonlin=%s',
105-
desc='consider gradient nonlinearities, default off')
104+
gradnonlin = traits.Bool(False, argstr='-g', desc=('consider gradient '
105+
'nonlinearities, default off'))
106106

107107

108108
class BEDPOSTX(FSLXCommand):
@@ -138,12 +138,18 @@ class BEDPOSTX(FSLXCommand):
138138
_can_resume = True
139139

140140

141+
class XFibresInputSpec(FSLXCommandInputSpec):
142+
gradnonlin = File(exists=True, argstr='--gradnonlin=%s',
143+
desc='gradient file corresponding to slice')
144+
145+
141146
class XFibres(FSLXCommand):
142147
"""
143-
Perform model parameters estimation for local (voxelwise) diffusion parameters
148+
Perform model parameters estimation for local (voxelwise) diffusion
149+
parameters
144150
"""
145151
_cmd = 'xfibres'
146-
input_spec = FSLXCommandInputSpec
152+
input_spec = XFibresInputSpec
147153
output_spec = FSLXCommandOutputSpec
148154

149155

nipype/interfaces/fsl/tests/test_auto_BEDPOSTX.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_BEDPOSTX_inputs():
3838
),
3939
fudge=dict(argstr='--fudge=%d',
4040
),
41-
gradnonlin=dict(argstr='--gradnonlin=%s',
41+
gradnonlin=dict(argstr='-g',
4242
),
4343
ignore_exception=dict(nohash=True,
4444
usedefault=True,

nipype/interfaces/fsl/tests/test_auto_XFibres.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def test_XFibres_inputs():
3838
),
3939
fudge=dict(argstr='--fudge=%d',
4040
),
41+
gradnonlin=dict(argstr='--gradnonlin=%s',
42+
),
4143
ignore_exception=dict(nohash=True,
4244
usedefault=True,
4345
),

0 commit comments

Comments
 (0)