

def load_pkl(self, name):
    ' Read hash table values from file <name>, return params '
    with gzip.open(name, 'rb') as f:
        temp = pickle.load(f)
    assert (temp.ht_version >= HT_COMPAT_VERSION)
    params = temp.params
    self.hashbits = temp.hashbits
    self.depth = temp.depth
    if hasattr(temp, 'maxtimebits'):
        self.maxtimebits = temp.maxtimebits
    else:
        self.maxtimebits = _bitsfor(temp.maxtime)
    self.table = temp.table
    self.counts = temp.counts
    self.names = temp.names
    self.hashesperid = np.array(temp.hashesperid).astype(np.uint32)
    self.ht_version = temp.ht_version
    self.dirty = False
    return params

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