bloqade.geometry.dialects.grid.shape
← Module overview
function
source
functionshape¶source
bloqade.geometry.dialects.grid.shape
def shape(grid: Grid) -> tuple[int, int]Get the shape of a grid.
Returns: tuple[int, int]: a tuple of (num_x, num_y)
Parameters
| Name | Type | Description |
|---|---|---|
grid | Grid | a grid object |
Returns
tuple[int, int]