diff --git a/nipype/interfaces/fsl/preprocess.py b/nipype/interfaces/fsl/preprocess.py index c69a2caad6..6f7386e813 100644 --- a/nipype/interfaces/fsl/preprocess.py +++ b/nipype/interfaces/fsl/preprocess.py @@ -1388,6 +1388,26 @@ def _parse_inputs(self, skip=None): return super(FUGUE, self)._parse_inputs(skip=skip) + def _list_outputs(self): + outputs = self._outputs().get() + if self.inputs.forward_warping: + out_field = 'warped_file' + else: + out_field = 'unwarped_file' + out_file = getattr(self.inputs, out_field) + if not isdefined(out_file): + if isdefined(self.inputs.in_file): + out_file = self._gen_fname(self.inputs.in_file, + suffix='_'+out_field[:-5]) + if isdefined(out_file): + outputs[out_field] = os.path.abspath(out_file) + if isdefined(self.inputs.fmap_out_file): + outputs['fmap_out_file'] = os.path.abspath( + self.inputs.fmap_out_file) + if isdefined(self.inputs.shift_out_file): + outputs['shift_out_file'] = os.path.abspath( + self.inputs.shift_out_file) + return outputs class PRELUDEInputSpec(FSLCommandInputSpec): complex_phase_file = File(exists=True, argstr='--complex=%s',