Commit 7463149b authored by natalieklein's avatar natalieklein

wrap import Image with try

parent f763ebee
......@@ -73,7 +73,10 @@ def make_montage(filename, fnames, orientation='h', colorbar=None,
out : array
The montage image data array.
from PIL import Image
import Image
except ImportError:
from PIL import Image
# This line is only necessary to overcome a PIL bug, see:
# dimension-dependent-attributeerror-in-pil-fromarray-function
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