Skip to content

Commit 92538b9

Browse files
committed
Added grad_dev file to inputspec
1 parent 0f878d1 commit 92538b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nipype/interfaces/fsl/dti.py

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

268269

@@ -346,6 +347,9 @@ def _run_interface(self, runtime):
346347
os.path.join(subjectdir, 'bvals'))
347348
copyfile(self.inputs.bvecs,
348349
os.path.join(subjectdir, 'bvecs'))
350+
_, _, ext = split_filename(self.inputs.grad_dev)
351+
copyfile(self.inputs.grad_dev,
352+
os.path.join(subjectdir, 'grad_dev' + ext))
349353

350354
retval = super(BEDPOSTX5, self)._run_interface(runtime)
351355

0 commit comments

Comments
 (0)