@@ -218,7 +218,8 @@ class AllineateInputSpec(AFNICommandInputSpec):
218
218
out_file = File (
219
219
desc = 'output file from 3dAllineate' ,
220
220
argstr = '-prefix %s' ,
221
- genfile = True ,
221
+ name_template = '%s_allineate' ,
222
+ name_source = 'in_file' ,
222
223
hash_files = False ,
223
224
xor = ['allcostx' ])
224
225
out_param_file = File (
@@ -486,16 +487,8 @@ def _format_arg(self, name, trait_spec, value):
486
487
return arg
487
488
return super (Allineate , self )._format_arg (name , trait_spec , value )
488
489
489
- def _gen_outfilename (self ):
490
- out_file = self .inputs .out_file
491
- if not isdefined (out_file ) and isdefined (self .inputs .in_file ) and not isdefined (self .inputs .allcostx ):
492
- out_file = op .abspath (self ._gen_fname (self .inputs .in_file ,op .dirname (self .inputs .in_file ),suffix = '_allineate' ))
493
- return out_file
494
-
495
490
def _list_outputs (self ):
496
- outputs = self .output_spec ().get ()
497
-
498
- outputs ['out_file' ] = self ._gen_outfilename ()
491
+ outputs = super (Allineate , self )._list_outputs ()
499
492
500
493
if isdefined (self .inputs .out_weight_file ):
501
494
outputs ['out_weight_file' ] = op .abspath (
@@ -523,11 +516,6 @@ def _list_outputs(self):
523
516
os .path .join (os .getcwd (), self .inputs .allcostx ))
524
517
return outputs
525
518
526
- def _gen_filename (self , name ):
527
- if name == 'out_file' :
528
- return self ._gen_outfilename ()
529
- return None
530
-
531
519
532
520
class AutoTcorrelateInputSpec (AFNICommandInputSpec ):
533
521
in_file = File (
0 commit comments