bloqade.geometry.dialects.grid.row_xpos
← Module overview
function
source
functionrow_xpos¶source
bloqade.geometry.dialects.grid.row_xpos
Signature
def row_xpos(grid: Grid[typing.Any, typing.Any], row_index: int) -> ilist.IList[float, typing.Any]Get the x positions of a specific row in the grid.
Returns: ilist.IList[float, typing.Any]: a list of x positions for the specified row
Parameters
| Name | Type | Description |
|---|---|---|
grid | Grid[typing.Any, typing.Any] | a grid object |
row_index | int | the index of the row to get x positions for |
Returns
ilist.IList[float, typing.Any]