iwopy.utils.RegularDiscretizationGrid.all_gridpoints(pts, allow_outer=True)[source]

Checks if all points are on grid.

Parameters

pts: numpy.ndarray

The points space, shape: (n_pts, n_dims)

allow_outer: bool

Allow outermost point indices, else reduce those to lower-left cell corner

Returns

bool :

True if all points on grid