Skip to content

bloqade.geometry.dialects.grid.from_positions

← Module overview

functionfrom_positionssource

bloqade.geometry.dialects.grid.from_positions

def from_positions(x_positions, y_positions)

Construct a grid from the given x and y positions.

Parameters

NameTypeDescription
x_positionsIList[float] | list[float]A list or ilist of floats representing the x-coordinates of grid points.
y_positionsIList[float] | list[float]A list or ilist of floats representing the y-coordinates of grid points.

Returns

Grid: a grid object

source