bloqade.geometry.dialects.grid.get_xpos
← Module overview
function
source
functionget_xpos¶source
bloqade.geometry.dialects.grid.get_xpos
def get_xpos(grid: Grid[Nx, typing.Any]) -> ilist.IList[float, Nx]Get the x positions of a grid.
Returns: ilist.IList[float, typing.Any]: a list of x positions
Parameters
| Name | Type | Description |
|---|---|---|
grid | Grid[Nx, typing.Any] | a grid object |
Returns
ilist.IList[float, Nx]