bloqade.geometry.dialects.grid.sub_grid
← Module overview
function
source
functionsub_grid¶source
bloqade.geometry.dialects.grid.sub_grid
def sub_grid(grid, x_indices, y_indices)Get a subgrid from the given grid.
Returns: Grid: a subgrid object
Parameters
| Name | Type | Description |
|---|---|---|
grid | Grid | a grid object |
x_indices | — | a list/ilist of x indices |
y_indices | — | a list/ilist of y indices |