File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff 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
13921412class PRELUDEInputSpec (FSLCommandInputSpec ):
13931413 complex_phase_file = File (exists = True , argstr = '--complex=%s' ,
You can’t perform that action at this time.
0 commit comments