@@ -2387,8 +2387,8 @@ class ConcatenateLTAInputSpec(FSTraitedSpec):
2387
2387
File (exists = True ), 'identity.nofile' , argstr = '%s' , position = - 2 ,
2388
2388
mandatory = True , desc = 'maps dst1(src2) to dst2' )
2389
2389
out_file = File (
2390
- 'concat.lta' , usedefault = True , position = - 1 , argstr = '%s' ,
2391
- hash_files = False ,
2390
+ position = - 1 , argstr = '%s' , hash_files = False , name_source = [ 'in_lta1' ] ,
2391
+ name_template = '%s_concat' , keep_extension = True ,
2392
2392
desc = 'the combined LTA maps: src1 to dst2 = LTA2*LTA1' )
2393
2393
2394
2394
# Inversion and transform type
@@ -2434,7 +2434,7 @@ class ConcatenateLTA(FSCommand):
2434
2434
>>> conc_lta.inputs.in_lta1 = 'lta1.lta'
2435
2435
>>> conc_lta.inputs.in_lta2 = 'lta2.lta'
2436
2436
>>> conc_lta.cmdline # doctest: +ALLOW_UNICODE
2437
- 'mri_concatenate_lta lta1.lta lta2.lta concat .lta'
2437
+ 'mri_concatenate_lta lta1.lta lta2.lta lta1_concat .lta'
2438
2438
2439
2439
You can use 'identity.nofile' as the filename for in_lta2, e.g.:
2440
2440
@@ -2459,8 +2459,3 @@ def _format_arg(self, name, spec, value):
2459
2459
if name == 'out_type' :
2460
2460
value = {'VOX2VOX' : 0 , 'RAS2RAS' : 1 }[value ]
2461
2461
return super (ConcatenateLTA , self )._format_arg (name , spec , value )
2462
-
2463
- def _list_outputs (self ):
2464
- outputs = self .output_spec ().get ()
2465
- outputs ['out_file' ] = os .path .abspath (self .inputs .out_file )
2466
- return outputs
0 commit comments