bloqade.geometry.dialects.grid.from_positions
← Module overview
function
source
functionfrom_positions¶source
bloqade.geometry.dialects.grid.from_positions
def from_positions(x_positions, y_positions)Construct a grid from the given x and y positions.
Parameters
| Name | Type | Description |
|---|---|---|
x_positions | IList[float] | list[float] | A list or ilist of floats representing the x-coordinates of grid points. |
y_positions | IList[float] | list[float] | A list or ilist of floats representing the y-coordinates of grid points. |
Returns
Grid: a grid object