Skip to content

bloqade.geometry.dialects.grid.row_xpos

← Module overview

functionrow_xpossource

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

NameTypeDescription
gridGrid[typing.Any, typing.Any]a grid object
row_indexintthe index of the row to get x positions for

Returns

ilist.IList[float, typing.Any]

source