bloqade.geometry.dialects.grid.shift
← Module overview
function
source
functionshift¶source
bloqade.geometry.dialects.grid.shift
Signature
def shift(grid: Grid[Nx, Ny], x_shift: float, y_shift: float) -> Grid[Nx, Ny]Shift a grid in the x and y directions.
Returns: Grid: a new grid object that has been shifted
Parameters
| Name | Type | Description |
|---|---|---|
grid | Grid[Nx, Ny] | a grid object |
x_shift | float | shift in the x direction |
y_shift | float | shift in the y direction |
Returns
Grid[Nx, Ny]