

def __init__(self, filename=None, hashbits=20, depth=100, maxtime=16384):
    ' allocate an empty hash table of the specified size '
    if (filename is not None):
        self.params = self.load(filename)
    else:
        self.hashbits = hashbits
        self.depth = depth
        self.maxtimebits = _bitsfor(maxtime)
        size = (2 ** hashbits)
        self.table = np.zeros((size, depth), dtype=np.uint32)
        self.counts = np.zeros(size, dtype=np.int32)
        self.names = []
        self.hashesperid = np.zeros(0, np.uint32)
        self.params = {
            
        }
        self.ht_version = HT_VERSION
        self.dirty = True

dataset/ETHPy150Open dpwe/audfprint/hash_table.py HashTable.__init__/original