@@ -490,19 +490,19 @@ def _format_arg(self, name, trait_spec, value):
490
490
def _list_outputs (self ):
491
491
outputs = super (Allineate , self )._list_outputs ()
492
492
493
- if isdefined ( self .inputs .out_weight_file ) :
493
+ if self .inputs .out_weight_file :
494
494
outputs ['out_weight_file' ] = op .abspath (
495
495
self .inputs .out_weight_file )
496
496
497
- if isdefined ( self .inputs .out_matrix ) :
497
+ if self .inputs .out_matrix :
498
498
path , base , ext = split_filename (self .inputs .out_matrix )
499
499
if ext .lower () not in ['.1d' , '.1D' ]:
500
500
outputs ['out_matrix' ] = self ._gen_fname (
501
501
self .inputs .out_matrix , suffix = '.aff12.1D' )
502
502
else :
503
503
outputs ['out_matrix' ] = op .abspath (self .inputs .out_matrix )
504
504
505
- if isdefined ( self .inputs .out_param_file ) :
505
+ if self .inputs .out_param_file :
506
506
path , base , ext = split_filename (self .inputs .out_param_file )
507
507
if ext .lower () not in ['.1d' , '.1D' ]:
508
508
outputs ['out_param_file' ] = self ._gen_fname (
@@ -511,9 +511,8 @@ def _list_outputs(self):
511
511
outputs ['out_param_file' ] = op .abspath (
512
512
self .inputs .out_param_file )
513
513
514
- if isdefined (self .inputs .allcostx ):
515
- outputs ['allcostX' ] = os .path .abspath (
516
- os .path .join (os .getcwd (), self .inputs .allcostx ))
514
+ if self .inputs .allcostx :
515
+ outputs ['allcostX' ] = os .path .abspath (self .inputs .allcostx )
517
516
return outputs
518
517
519
518
0 commit comments