@@ -1207,7 +1207,7 @@ class Tkregister2InputSpec(FSTraitedSpec):
1207
1207
noedit = traits .Bool (True , argstr = "--noedit" , usedefault = True ,
1208
1208
desc = 'do not open edit window (exit)' )
1209
1209
reg_file = File ('register.dat' , usedefault = True ,
1210
- mandatory = True , argstr = " --reg %s" ,
1210
+ mandatory = True , argstr = ' --reg %s' ,
1211
1211
desc = 'freesurfer-style registration file' )
1212
1212
reg_header = traits .Bool (False , argstr = '--regheader' ,
1213
1213
desc = 'compute regstration from headers' )
@@ -1266,7 +1266,14 @@ class Tkregister2(FSCommand):
1266
1266
1267
1267
def _list_outputs (self ):
1268
1268
outputs = self ._outputs ().get ()
1269
- outputs ['reg_file' ] = op .abspath (self .inputs .reg_file )
1269
+ outputs ['reg_file' ] = os . path .abspath (self .inputs .reg_file )
1270
1270
if isdefined (self .inputs .fsl_out ):
1271
1271
outputs ['fsl_file' ] = op .abspath (self .inputs .fsl_out )
1272
1272
return outputs
1273
+
1274
+ def _gen_outfilename (self ):
1275
+ if isdefined (self .inputs .out_file ):
1276
+ return os .path .abspath (self .inputs .out_file )
1277
+ else :
1278
+ _ , name , ext = split_filename (self .inputs .in_file )
1279
+ return os .path .abspath (name + '_smoothed' + ext )
0 commit comments