#NEWLINE# def __init__( self , nrows , dtype , chunksize , userandom , datadir , docompress = 0 , complib = 'zlib' ) : #NEWLINE# #INDENT# self . dtype = dtype #NEWLINE# self . docompress = docompress #NEWLINE# self . complib = complib #NEWLINE# self . filename = '-' . join ( [ rdm_cod [ userandom ] , ( 'n' + nrows ) , ( 's' + chunksize ) , dtype ] ) #NEWLINE# self . filename = ( 'lookup-' + self . filename ) #NEWLINE# if docompress : #NEWLINE# #INDENT# self . filename += ( ( '-' + complib ) + str ( docompress ) ) #NEWLINE# #UNINDENT# self . filename = ( ( ( datadir + '/' ) + self . filename ) + '.h5' ) #NEWLINE# print ( 'Processing database:' , self . filename ) #NEWLINE# self . userandom = userandom #NEWLINE# self . nrows = get_nrows ( nrows ) #NEWLINE# self . chunksize = get_nrows ( chunksize ) #NEWLINE# self . step = self . chunksize #NEWLINE# self . scale = NOISE