autoarray.inversion.pixelizations.VoronoiMagnification

class autoarray.inversion.pixelizations.VoronoiMagnification(shape=(3, 3))
__init__(shape=(3, 3))

A pixelization which adapts to the magnification pattern of a lens’s mass model and uses a Voronoi pixelization to discretize the grid into pixels.

Parameters:shape – The shape of the unmasked sparse-grid which is laid over the masked image, in order to derive the adaptive-magnification pixelization (see ImagePlanePixelization)

Methods

__init__([shape]) A pixelization which adapts to the magnification pattern of a lens’s mass model and uses a Voronoi pixelization to discretize the grid into pixels.
make_pixelization_grid([relocated_grid, …]) The relocated pixelization grid is now used to create the pixelization’s Voronoi grid using the scipy.spatial library.
mapper_from(grid, sparse_grid, …[, settings]) Setup a Voronoi mapper from an adaptive-magnification pixelization, as follows:
relocate_grid_via_border(grid, settings, …) Return all coordinates that are outside the pixelization border to the edge of the border.
relocate_pixelization_grid_via_border(grid, …) Return all coordinates of the pixeliztion itself that are outside the pixelization border to the edge of the border.
sparse_grid_from(grid, hyper_image[, settings])
weight_map_from(hyper_image)