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):
263
263
usedefault = True , position = 1 , argstr = '%s' )
264
264
gradnonlin = traits .Bool (False , argstr = '-g' , desc = ('consider gradient '
265
265
'nonlinearities, default off' ))
266
+ grad_dev = File (exists = True , desc = 'grad_dev file, if gradnonlin, -g is True' )
266
267
use_gpu = traits .Bool (False , desc = 'Use the GPU version of bedpostx' )
267
268
268
269
@@ -346,6 +347,9 @@ def _run_interface(self, runtime):
346
347
os .path .join (subjectdir , 'bvals' ))
347
348
copyfile (self .inputs .bvecs ,
348
349
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 ))
349
353
350
354
retval = super (BEDPOSTX5 , self )._run_interface (runtime )
351
355
You can’t perform that action at this time.
0 commit comments