def avg(arr, n=2):
    '\n    NOT a general averaging function\n    return bin centers (lin and log)\n    '
    diff = np.diff(arr)
    if np.allclose(diff, diff[::(- 1)]):
        return mavg(arr, n=n)
    else:
        return np.power(10.0, mavg(np.log10(arr), n=n))
NOT a general averaging function
return bin centers (lin and log)
def avg(arr, n=2):
    '\n    NOT a general averaging function\n    return bin centers (lin and log)\n    '
    diff = np.diff(arr)
    if np.allclose(diff, diff[::(- 1)]):
        return mavg(arr, n=n)
    else:
        return np.power(10.0, mavg(np.log10(arr), n=n))