Skip to content
Snippets Groups Projects
Commit 6b34f405 authored by Martin Craig's avatar Martin Craig
Browse files

Minor tweak: Only return images that exist in the output

This allows @fileOrArray to be more liberal without returning a lot of
key : None in the results.
parent 3a7ad05f
No related branches found
No related tags found
No related merge requests found
......@@ -577,11 +577,7 @@ class _FileOrThing(object):
# Load the LOADed outputs
for oname, ofile in outfiles.items():
if not op.exists(ofile): oval = None
else: oval = self.__load(ofile)
result[oname] = oval
if op.exists(ofile): result[oname] = self.__load(ofile)
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment