Skip to content

Commit 96259dc

Browse files
committed
ref: eddy to remove setting inputs
1 parent 4006748 commit 96259dc

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ class EddyInputSpec(FSLCommandInputSpec):
398398
in_bval = File(exists=True, mandatory=True, argstr='--bvals=%s',
399399
desc=('File containing the b-values for all volumes in '
400400
'--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'))
404404
session = File(exists=True, argstr='--session=%s',
405405
desc=('File containing session indices for all volumes in '
406406
'--imain'))
@@ -459,7 +459,7 @@ class Eddy(FSLCommand):
459459
>>> eddy.cmdline #doctest: +ELLIPSIS
460460
'eddy --acqp=epi_acqp.txt --bvals=bvals.scheme --bvecs=bvecs.scheme \
461461
--imain=epi.nii --index=epi_index.txt --mask=epi_mask.nii \
462-
--out=.../eddy_corrected'
462+
--out=eddy_corrected'
463463
>>> res = eddy.run() # doctest: +SKIP
464464
465465
"""
@@ -491,14 +491,6 @@ def _format_arg(self, name, spec, value):
491491
return spec.argstr % value.split('_fieldcoef')[0]
492492
return super(Eddy, self)._format_arg(name, spec, value)
493493

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-
502494
def _list_outputs(self):
503495
outputs = self.output_spec().get()
504496
outputs['out_corrected'] = '%s.nii.gz' % self.inputs.out_base

0 commit comments

Comments
 (0)