autolens.potential_correction.SrcFactory#

class SrcFactory[source]#

Bases: ABC

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.

abstractmethod eval_func(xgrid, ygrid)[source]#

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

eval_grad(xgrid, ygrid, cross_size=0.001)[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.