Skip to content

Commit 124a850

Browse files
committed
Merge pull request #1493 from mattfeld/master
ENH Added grad_dev input to fsl.dti.bedpostx5 interface
2 parents 7b031eb + c33d0ec commit 124a850

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Release 0.12.0-rc1 (April 20, 2016)
22
============
33

4+
* ENH: Added grad_dev input to fsl.dti.bedpostx5 interface(https://github.com/nipy/nipype/pull/1493)
45
* ENH: ResourceMultiProc plugin to support resource allocation (https://github.com/nipy/nipype/pull/1372)
56
* ENH: Added dcm2niix interface (https://github.com/nipy/nipype/pull/1435)
67
* ENH: Add nipype_crash_search command (https://github.com/nipy/nipype/pull/1422)

nipype/interfaces/fsl/dti.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ class BEDPOSTX5InputSpec(FSLXCommandInputSpec):
265265
usedefault=True, position=1, argstr='%s')
266266
gradnonlin = traits.Bool(False, argstr='-g', desc=('consider gradient '
267267
'nonlinearities, default off'))
268+
grad_dev = File(exists=True, desc='grad_dev file, if gradnonlin, -g is True')
268269
use_gpu = traits.Bool(False, desc='Use the GPU version of bedpostx')
269270

270271

@@ -348,6 +349,10 @@ def _run_interface(self, runtime):
348349
os.path.join(subjectdir, 'bvals'))
349350
copyfile(self.inputs.bvecs,
350351
os.path.join(subjectdir, 'bvecs'))
352+
if isdefined(self.inputs.grad_dev):
353+
_, _, ext = split_filename(self.inputs.grad_dev)
354+
copyfile(self.inputs.grad_dev,
355+
os.path.join(subjectdir, 'grad_dev' + ext))
351356

352357
retval = super(BEDPOSTX5, self)._run_interface(runtime)
353358

nipype/interfaces/fsl/tests/test_auto_BEDPOSTX5.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_BEDPOSTX5_inputs():
3636
),
3737
fudge=dict(argstr='-w %d',
3838
),
39+
grad_dev=dict(),
3940
gradnonlin=dict(argstr='-g',
4041
),
4142
ignore_exception=dict(nohash=True,

0 commit comments

Comments
 (0)