def _midspace(start, end, n):
    x = np.linspace(start, end, n + 1)
    x = x[:-1] + np.diff(x)
    return x
Cut region start/end into n regions and return the midpoint of each bin
dataset/ETHPy150Open mrterry/yoink/yoink/interp.py/_midspace