@@ -16,7 +16,7 @@ def __init__(self, mapper, values, mesh_pixel_mask: Optional[np.ndarray] = None)
1616 mapper pixel) in order to perform calculations which use both the `Mapper` and these values.
1717
1818 For example, a common use case is to interpolate the reconstruction of values on a mapper from the
19- mesh of the mapper (e.g. a Voronoi mesh) to a uniform Cartesian grid of values, because the irregular mesh
19+ mesh of the mapper (e.g. a Delaunay mesh) to a uniform Cartesian grid of values, because the irregular mesh
2020 is difficult to plot and analyze.
2121
2222 This class also provides functionality to compute the magnification of the reconstruction, by comparing the
@@ -26,7 +26,7 @@ def __init__(self, mapper, values, mesh_pixel_mask: Optional[np.ndarray] = None)
2626 Parameters
2727 ----------
2828 mapper
29- The `Mapper` object which pairs with the values, for example a `MapperVoronoi ` object.
29+ The `Mapper` object which pairs with the values, for example a `MapperDelaunay ` object.
3030 values
3131 The values of each pixel of the mapper, which could be the `reconstruction` values of an `Inversion`,
3232 but alternatively could be other quantities such as the noise-map of these values.
@@ -71,7 +71,7 @@ def interpolated_array_from(
7171 extent : Optional [Tuple [float , float , float , float ]] = None ,
7272 ) -> Array2D :
7373 """
74- The values of a mapper can be on an irregular pixelization (e.g. a Delaunay triangulation, Voronoi mesh ).
74+ The values of a mapper can be on an irregular pixelization (e.g. a Delaunay triangulation).
7575
7676 Analysing the reconstruction can therefore be difficult and require specific functionality tailored to using
7777 this irregular grid.
@@ -166,7 +166,7 @@ def max_pixel_centre(self) -> Grid2DIrregular:
166166 max_pixel = np .argmax (self .values_masked )
167167
168168 max_pixel_centre = Grid2DIrregular (
169- values = [self .mapper .source_plane_mesh_grid [max_pixel ]]
169+ values = [self .mapper .source_plane_mesh_grid . array [max_pixel ]]
170170 )
171171
172172 return max_pixel_centre
@@ -218,7 +218,8 @@ def magnification_via_mesh_from(
218218 PSF, as the source plane reconstruction is a non-convolved image.
219219
220220 In the source-plane, this is computed by summing the reconstruction values multiplied by the area of each
221- mesh pixel, for example if the source-plane is a `Voronoi` mesh this is the area of each Voronoi pixel.
221+ mesh pixel, for example if the source-plane is a `Delaunay` mesh this is the area of each corresponding
222+ Delaunay pixel.
222223
223224 This calculatiion is generally more robust that using an interpolated
224225 image (see `magnification_via_interpolation_from`), because it uses the exact the source-plane reconstruction
@@ -244,7 +245,7 @@ def magnification_via_mesh_from(
244245
245246 To compute the magnification of a `Delaunay` mesh, use the method `magnification_via_interpolation_from`.
246247
247- This method only supports a `RectangularMagnification` or `Voronoi` mesh .
248+ This method only supports a `RectangularMagnification`.
248249 """
249250 )
250251
@@ -257,8 +258,7 @@ def magnification_via_mesh_from(
257258 """
258259 The magnification cannot be computed because the areas of the source-plane mesh pixels are all zero.
259260
260- This probably means you have specified an invalid source-plane mesh, for example a `Voronoi` mesh
261- where all pixels are on the edge of the source-plane and therefore have an infinite border.
261+ This probably means you have specified an invalid source-plane mesh.
262262 """
263263 )
264264
0 commit comments