Source Code#

This page provided API docs for functionality which is typically not used by users, but is used internally in the PyAutoGalaxy source code.

These docs are intended for developers, or users doing non-standard computations using internal PyAutoFit objects.

Geometry Profiles#

EllProfile

An elliptical profile, which describes the geometry of profiles defined by an ellipse.

SphProfile

A spherical profile, which describes profiles with y and x centre Cartesian coordinates.

Operators#

OperateImage

Packages methods which operate on the 2D image returned from the image_2d_from function of a light object (e.g. a LightProfile, Galaxy).

LensCalc

Computes lensing quantities from a deflection-angle callable and an optional potential callable.

Total [ag.mp]#

PointMass

PowerLawCore

Represents a cored elliptical power-law density distribution

PowerLawCoreSph

Represents a cored spherical power-law density distribution

PowerLawBroken

Ell, homoeoidal mass model with an inner_slope and outer_slope, continuous in density across break_radius.

PowerLawBrokenSph

Ell, homoeoidal mass model with an inner_slope and outer_slope, continuous in density across break_radius.

IsothermalCore

Represents a cored elliptical isothermal density distribution, which is equivalent to the elliptical power-law density distribution for the value slope: float = 2.0

IsothermalCoreSph

Represents a cored spherical isothermal density distribution, which is equivalent to the elliptical power-law density distribution for the value slope: float = 2.0

PowerLaw

Represents an elliptical power-law density distribution.

PowerLawSph

Represents a spherical power-law density distribution.

Isothermal

Represents an elliptical isothermal density distribution, which is equivalent to the elliptical power-law density distribution for the value slope = 2.0.

IsothermalSph

Represents a spherical isothermal density distribution, which is equivalent to the spherical power-law density distribution for the value slope: float = 2.0

Mass Sheets [ag.mp]#

ExternalShear

Constant external shear term used in strong-lens mass models.

MassSheet

Multipoles [ag.mp]#

PowerLawMultipole

Abstract class for elliptical mass profiles.

Stellar [ag.mp]#

Gaussian

Sersic

SersicSph

Exponential

ExponentialSph

DevVaucouleurs

DevVaucouleursSph

SersicGradient

Setup a Sersic mass and light profiles.

SersicGradientSph

Setup a Sersic mass and light profiles.

Chameleon

ChameleonSph

Dark [ag.mp]#

gNFW

The elliptical NFW profiles, used to fit the dark matter halo of the lens.

gNFWSph

NFWTruncatedSph

NFWTruncatedMCRDuffySph

Input m200: The m200 of the NFW part of the corresponding tNFW part.

NFWTruncatedMCRLudlowSph

Input m200: The m200 of the NFW part of the corresponding tNFW part.

NFWTruncatedMCRScatterLudlowSph

NFW

NFWSph

NFWMCRDuffySph

NFWMCRLudlowSph

NFWMCRScatterLudlow

NFWMCRScatterLudlowSph

NFWMCRLudlow

gNFWMCRLudlow

The elliptical NFW profiles, used to fit the dark matter halo of the lens.