Skip to content

Commit e05556f

Browse files
committed
Cleanup and return abspath.
1 parent 2c9c742 commit e05556f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/interfaces/fsl/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ class ConvertXFMInputSpec(FSLCommandInputSpec):
896896
xor=_options, requires=["in_file2"],
897897
desc="use secondary matrix to fix scale and skew")
898898
out_file = File(genfile=True, argstr="-omat %s", position=1,
899-
desc="final transformation matrix")
899+
desc="final transformation matrix", hash_files=False)
900900

901901

902902
class ConvertXFMOutputSpec(TraitedSpec):
@@ -926,15 +926,15 @@ def _list_outputs(self):
926926
outputs = self._outputs().get()
927927
outfile = self.inputs.out_file
928928
if not isdefined(outfile):
929-
path, infile1, ext = split_filename(self.inputs.in_file)
929+
_, infile1, _ = split_filename(self.inputs.in_file)
930930
if self.inputs.invert_xfm:
931931
outfile = fname_presuffix(infile1,
932932
suffix="_inv.mat",
933933
newpath=os.getcwd(),
934934
use_ext=False)
935935
else:
936936
if self.inputs.concat_xfm:
937-
path, infile2, ext = split_filename(self.inputs.in_file2)
937+
_, infile2, _ = split_filename(self.inputs.in_file2)
938938
outfile = fname_presuffix("%s_%s" % (infile1, infile2),
939939
suffix=".mat",
940940
newpath=os.getcwd(),
@@ -944,7 +944,7 @@ def _list_outputs(self):
944944
suffix="_fix.mat",
945945
newpath=os.getcwd(),
946946
use_ext=False)
947-
outputs["out_file"] = outfile
947+
outputs["out_file"] = os.path.abspath(outfile)
948948
return outputs
949949

950950
def _gen_filename(self, name):

0 commit comments

Comments
 (0)