autolens.potential_correction.PixSrcFactoryITP#

class PixSrcFactoryITP[source]#

Bases: SrcFactory

A source factory interpolating a pixelized source reconstruction (Delaunay linear interpolation with nearest-neighbour fallback). Gradient evaluation uses per-point cross sizes set by the Voronoi cell areas of the reconstruction’s mesh.

Parameters:
  • points (ndarray) – The [n_points, 2] source-plane positions of the reconstruction, in autolens (y, x) order.

  • values (ndarray) – The reconstructed source brightness at those positions.

Methods

eval_func

The source brightness at the input (x, y) positions.

eval_grad

The (dS/dy, dS/dx) source gradients at the input (x, y) positions, by central differences over a cross of half-length cross_size.

eval_func(xgrid, ygrid)[source]#

The source brightness at the input (x, y) positions.

eval_grad(xgrid, ygrid, cross_size=None)[source]#

The (dS/dy, dS/dx) source gradients at the input (x, y) positions, by central differences over a cross of half-length cross_size.