pcdsdevices.targets.snake_grid_list

pcdsdevices.targets.snake_grid_list(points)

Flatten them into lists with snake_like pattern coordinate points. [[1, 2], [3, 4]] => [1, 2, 4, 3]

Parameters:

points (array) – Array containing the grid points for an axis with shape MxN.

Returns:

flat_points (list) – List of all the grid points folowing a snake-like pattern.