File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments