Commit bd486254 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 7e37dff8
......@@ -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(),
Supports Markdown
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