Skip to content

Commit 52175f1

Browse files
author
bpinsard
committed
Allow out_file to be alternatively not generated
1 parent c0ca252 commit 52175f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nipype/interfaces/afni/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ def _list_outputs(self):
232232
outputs = self.output_spec().get()
233233
for name in out_names:
234234
out = self._gen_filename(name)
235-
outputs[name] = os.path.abspath(out)
235+
if isdefined(out):
236+
outputs[name] = os.path.abspath(out)
236237
return outputs
237238

238239

0 commit comments

Comments
 (0)