Skip to content

Commit f763ebe

Browse files
author
natalieklein
committed
fix import Image in make_montage
1 parent 02f0688 commit f763ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

surfer/viz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def make_montage(filename, fnames, orientation='h', colorbar=None,
7373
out : array
7474
The montage image data array.
7575
"""
76-
import Image
76+
from PIL import Image
7777
# This line is only necessary to overcome a PIL bug, see:
7878
# http://stackoverflow.com/questions/10854903/what-is-causing-
7979
# dimension-dependent-attributeerror-in-pil-fromarray-function

0 commit comments

Comments
 (0)