mach.io.must.scan_grid

Contents

mach.io.must.scan_grid#

mach.io.must.scan_grid(
*axes: ndarray,
) Float[ndarray, 'points {len(axes)}']#

Return a flattened meshgrid of the given axes.

Example
>>> x = np.linspace(-1.25e-2, 1.25e-2, num=251, endpoint=True)
>>> y = np.array([0.0])
>>> z = np.linspace(1e-2, 3.5e-2, num=251, endpoint=True)
>>> grid = scan_grid(x, y, z)
>>> grid.shape
(63001, 3)
>>> grid