Skip to content

bloqade.geometry.dialects.grid.shape

← Module overview

functionshapesource

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

NameTypeDescription
gridGrida grid object

Returns

tuple[int, int]

source