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