changeset 970:930b92f88e61

typo in image_tiling
author James Bergstra <bergstrj@iro.umontreal.ca>
date Mon, 23 Aug 2010 15:54:19 -0400
parents bc22f739b54c
children 507159eea97e
files pylearn/io/image_tiling.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/io/image_tiling.py	Fri Aug 20 15:29:13 2010 -0400
+++ b/pylearn/io/image_tiling.py	Mon Aug 23 15:54:19 2010 -0400
@@ -114,8 +114,8 @@
     """
     if tiled_img.ndim==2:
         img = Image.fromarray( tiled_img, 'L')
-    elif tiled_img_ndim==3:
-        img = Image.fromarray( tiled_img, 'RGBA')
+    elif tiled_img.ndim==3:
+        img = Image.fromarray(tiled_img, 'RGBA')
     else:
         raise TypeError('bad ndim', tiled_img)