Mercurial > ift6266
changeset 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 | 368f1907ad5a |
children | 827de2cc34f8 db10ee2a07fb |
files | transformations/thick.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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()