Skip to content

Commit e66bc41

Browse files
committed
Changed BET interface's _gen_outfilename() to return relative path only for generated out_file.
1 parent 7a42b63 commit e66bc41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ def _gen_outfilename(self):
169169
out_file = self.inputs.out_file
170170
if not isdefined(out_file) and isdefined(self.inputs.in_file):
171171
out_file = self._gen_fname(self.inputs.in_file, suffix="_brain")
172-
return op.relpath(out_file, start=os.getcwd())
172+
return op.relpath(out_file, start=os.getcwd())
173+
return out_file
173174

174175
def _list_outputs(self):
175176
outputs = self.output_spec().get()

0 commit comments

Comments
 (0)