diff transformations/thick.py @ 17:c91d9f70206d

Changed a call to numpy without having imported it as numpy
author Xavier Glorot <glorotxa@iro.umontreal.ca>
date Thu, 28 Jan 2010 14:14:53 -0500
parents ebf61603489b
children db10ee2a07fb
line wrap: on
line diff
--- a/transformations/thick.py	Thu Jan 28 13:32:15 2010 -0500
+++ b/transformations/thick.py	Thu Jan 28 14:14:53 2010 -0500
@@ -81,7 +81,7 @@
             #------renormalizing
             maxit = N.max(trans)
             minit = N.min(trans)
-            trans= numpy.asarray((trans - (minit+mini)) / (maxit - (minit+mini)) * maxi,dtype=image.dtype)
+            trans= N.asarray((trans - (minit+mini)) / (maxit - (minit+mini)) * maxi,dtype=image.dtype)
             #--------
             return trans
         else:
@@ -113,7 +113,7 @@
 if __name__ == '__main__':
     
     from pylearn.io import filetensor as ft
-    import copy, numpy
+    import copy
     import pygame
     import time
     datapath = '/data/lisa/data/nist/by_class/'
@@ -167,4 +167,4 @@
         pygame.display.update()
         raw_input('Press Enter')
     
-    pygame.display.quit()
\ No newline at end of file
+    pygame.display.quit()