def merge(stamps, scores):
    stamps = np.atleast_2d(stamps)
    scores = np.asarray(scores)

    d = bubble_distance_matrix(stamps, stamps)

    eye = np.arange(d.shape[0])
    d[eye, eye] = np.inf

    result = np.ones(d.shape[0], dtype=np.bool)

    while np.isfinite(d).any():
        best = np.argmin(d)
        i, j = np.unravel_index(best, d.shape)
        _merge(result, d, i, j, scores)

    return stamps[result], scores[result]
Initialize new `RateLimitFault` with relevant information.
dataset/ETHPy150Open ChrisBeaumont/brut/bubbly/cluster.py/merge--crossover with--dataset/ETHPy150Open openstack/rack/rack/api/wsgi.py/RateLimitFault.__init__