Skip to content

Commit 9943d2b

Browse files
committed
fugue not listing outputs
1 parent 9a82862 commit 9943d2b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,26 @@ def _parse_inputs(self, skip=None):
13881388

13891389
return super(FUGUE, self)._parse_inputs(skip=skip)
13901390

1391+
def _list_outputs(self):
1392+
outputs = self._outputs().get()
1393+
if self.inputs.forward_warping:
1394+
out_field = 'warped_file'
1395+
else:
1396+
out_field = 'unwarped_file'
1397+
out_file = getattr(self.inputs, out_field)
1398+
if not isdefined(out_file):
1399+
if isdefined(self.inputs.in_file):
1400+
out_file = self._gen_fname(self.inputs.in_file,
1401+
suffix='_'+out_field[:-5])
1402+
if isdefined(out_file):
1403+
outputs[out_field] = os.path.abspath(out_file)
1404+
if isdefined(self.inputs.fmap_out_file):
1405+
outputs['fmap_out_file'] = os.path.abspath(
1406+
self.inputs.fmap_out_file)
1407+
if isdefined(self.inputs.shift_out_file):
1408+
outputs['shift_out_file'] = os.path.abspath(
1409+
self.inputs.shift_out_file)
1410+
return outputs
13911411

13921412
class PRELUDEInputSpec(FSLCommandInputSpec):
13931413
complex_phase_file = File(exists=True, argstr='--complex=%s',

0 commit comments

Comments
 (0)