@@ -896,7 +896,7 @@ class ConvertXFMInputSpec(FSLCommandInputSpec):
896
896
xor = _options , requires = ["in_file2" ],
897
897
desc = "use secondary matrix to fix scale and skew" )
898
898
out_file = File (genfile = True , argstr = "-omat %s" , position = 1 ,
899
- desc = "final transformation matrix" )
899
+ desc = "final transformation matrix" , hash_files = False )
900
900
901
901
902
902
class ConvertXFMOutputSpec (TraitedSpec ):
@@ -926,15 +926,15 @@ def _list_outputs(self):
926
926
outputs = self ._outputs ().get ()
927
927
outfile = self .inputs .out_file
928
928
if not isdefined (outfile ):
929
- path , infile1 , ext = split_filename (self .inputs .in_file )
929
+ _ , infile1 , _ = split_filename (self .inputs .in_file )
930
930
if self .inputs .invert_xfm :
931
931
outfile = fname_presuffix (infile1 ,
932
932
suffix = "_inv.mat" ,
933
933
newpath = os .getcwd (),
934
934
use_ext = False )
935
935
else :
936
936
if self .inputs .concat_xfm :
937
- path , infile2 , ext = split_filename (self .inputs .in_file2 )
937
+ _ , infile2 , _ = split_filename (self .inputs .in_file2 )
938
938
outfile = fname_presuffix ("%s_%s" % (infile1 , infile2 ),
939
939
suffix = ".mat" ,
940
940
newpath = os .getcwd (),
@@ -944,7 +944,7 @@ def _list_outputs(self):
944
944
suffix = "_fix.mat" ,
945
945
newpath = os .getcwd (),
946
946
use_ext = False )
947
- outputs ["out_file" ] = outfile
947
+ outputs ["out_file" ] = os . path . abspath ( outfile )
948
948
return outputs
949
949
950
950
def _gen_filename (self , name ):
0 commit comments