Commit 343ec864 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Check that mapped nifti file exists, save to new temp file if not.

parent 019f8d81
......@@ -1046,7 +1046,7 @@ def fileOrImage(*args, **kwargs):
# in-memory image - we have
# to save it out to a file
if infile is None:
if infile is None or not op.exists(infile):
hd, infile = tempfile.mkstemp(fslimage.defaultExt(),
dir=workdir)
os.close(hd)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment