(start_b, end_b, step)
return centers, bounds
1D grid centers and bounds

    Parameters
    ----------
    start_b, end_b : float
        start/end position. Bounds, not centers.

    step: float
        step size, i.e. grid resolution

    Returns
    -------
    centers : 1D numpy array

    bounds : 1D numpy array, with one more element than centers
1D grid centers and bounds
1D grid centers and bounds
def _grid_1d(start_b, end_b, step):
    '''
    1D grid centers and bounds

    Parameters
    ----------
    start_b, end_b : float
        start/end position. Bounds, not centers.

    step: float
        step size, i.e. grid resolution

    Returns
    -------
    centers : 1D numpy array

    bounds : 1D numpy array, with one more element than centers

    '''
    bounds = np.arange(start_b, end_b+step, step)
    centers = (bounds[:-1] + bounds[1:])/2

    return centers, bounds
def _grid_1d ( start_b , end_b , step ) : bounds = np . arange ( start_b , end_b + step , step ) centers = ( bounds [ : - 1 ] + bounds [ 1 : ] ) / 2 return centers , bounds