# HG changeset patch # User James Bergstra # Date 1282593259 14400 # Node ID 930b92f88e61d9a7cd5361506e7ff2b2de462c2a # Parent bc22f739b54ccdec67f8efab95d4841feb590e52 typo in image_tiling diff -r bc22f739b54c -r 930b92f88e61 pylearn/io/image_tiling.py --- 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)