@@ -398,9 +398,9 @@ class EddyInputSpec(FSLCommandInputSpec):
398
398
in_bval = File (exists = True , mandatory = True , argstr = '--bvals=%s' ,
399
399
desc = ('File containing the b-values for all volumes in '
400
400
'--imain' ))
401
- out_base = File ( argstr = '--out=%s' ,
402
- desc = ( 'basename for output (warped) image' ))
403
-
401
+ out_base = traits . Unicode ( 'eddy_corrected' , argstr = '--out=%s' ,
402
+ usedefault = True ,
403
+ desc = ( 'basename for output (warped) image' ))
404
404
session = File (exists = True , argstr = '--session=%s' ,
405
405
desc = ('File containing session indices for all volumes in '
406
406
'--imain' ))
@@ -459,7 +459,7 @@ class Eddy(FSLCommand):
459
459
>>> eddy.cmdline #doctest: +ELLIPSIS
460
460
'eddy --acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
461
461
--imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
462
- --out=.../ eddy_corrected'
462
+ --out=eddy_corrected'
463
463
>>> res = eddy.run() # doctest: +SKIP
464
464
465
465
"""
@@ -491,14 +491,6 @@ def _format_arg(self, name, spec, value):
491
491
return spec .argstr % value .split ('_fieldcoef' )[0 ]
492
492
return super (Eddy , self )._format_arg (name , spec , value )
493
493
494
- def _parse_inputs (self , skip = None ):
495
- if skip is None :
496
- skip = []
497
-
498
- if not isdefined (self .inputs .out_base ):
499
- self .inputs .out_base = os .path .abspath ('eddy_corrected' )
500
- return super (Eddy , self )._parse_inputs (skip = skip )
501
-
502
494
def _list_outputs (self ):
503
495
outputs = self .output_spec ().get ()
504
496
outputs ['out_corrected' ] = '%s.nii.gz' % self .inputs .out_base
0 commit comments