

def load(self, name):
    ' Read either pklz or mat-format hash table file '
    ext = os.path.splitext(name)[1]
    if (ext == '.mat'):
        params = self.load_matlab(name)
    else:
        params = self.load_pkl(name)
    print('Read fprints for', sum(((n is not None) for n in self.names)), 'files (', sum(self.counts), 'hashes) from', name)
    return params

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