

def get_hits_orig(self, hashes):
    ' Return np.array of [id, delta_time, hash, time] rows\n            associated with each element in hashes array of [time, hash] rows.\n            This is the original version that actually calls get_entry().\n        '
    hits = np.zeros(((np.shape(hashes)[0] * self.depth), 4), np.int32)
    nhits = 0
    for (time_, hash_) in hashes:
        idstimes = self.get_entry(hash_)
        nids = np.shape(idstimes)[0]
        hitrows = (nhits + np.arange(nids))
        hits[(hitrows, 0)] = idstimes[:, 0]
        hits[(hitrows, 1)] = (idstimes[:, 1] - time_)
        hits[(hitrows, 2)] = hash_
        hits[(hitrows, 3)] = time_
        nhits += nids
    hits.resize((nhits, 4))
    return hits

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