Skip to content

Commit ab9eb8d

Browse files
author
bpinsard
committed
fixing maths command out_file abspath
1 parent 5d1961c commit ab9eb8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/fsl/maths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
The maths module provides higher-level interfaces to some of the operations
55
that can be performed with the fslmaths command-line program.
66
"""
7-
7+
import os
88
import numpy as np
99

1010
from nipype.interfaces.fsl.base import FSLCommand, FSLCommandInputSpec
@@ -39,7 +39,7 @@ class MathsCommand(FSLCommand):
3939

4040
def _list_outputs(self):
4141
outputs = self.output_spec().get()
42-
outputs["out_file"] = self.inputs.out_file
42+
outputs["out_file"] = os.path.abspath(self.inputs.out_file)
4343
if not isdefined(self.inputs.out_file):
4444
outputs["out_file"] = self._gen_fname(self.inputs.in_file, suffix=self._suffix)
4545
return outputs

0 commit comments

Comments
 (0)