def get_centers_from_bins(bins):
    """returns the bin centers
    INTPUTS
    -------
    bins: ndarray[float, ndim=1]
        the bin edges to get the centers from

    OUTPUTS
    -------
    center: ndarray[float, ndim=1]
        center of the bins
    """
    return 0.5 * (bins[:-1] + bins[1:])