caustics.light.func package#

Submodules#

caustics.light.func.sersic module#

caustics.light.func.sersic.brightness_sersic(x0, y0, q, phi, n, Re, Ie, x, y, k, s=0.0)[source]#
caustics.light.func.sersic.k_lenstronomy(n: ArrayLike) ArrayLike[source]#

Computes the value of k for the Sersic profile, as used in the lenstronomy package.

Parameters:

n (ArrayLike) –

The Sersic index, which describes the degree of concentration of the source.

Unit: unitless

Returns:

k – The value of k for the Sersic profile.

Unit: unitless

Return type:

ArrayLike

caustics.light.func.sersic.k_sersic(n: ArrayLike) ArrayLike[source]#

Computes the value of k for the Sersic profile.

Parameters:

n (ArrayLike) –

The Sersic index, which describes the degree of concentration of the source.

Unit: unitless

Returns:

k – The value of k for the Sersic profile.

Unit: unitless

Return type:

ArrayLike

caustics.light.func.star_source module#

caustics.light.func.star_source.brightness_star(x0, y0, theta_s, Ie, x, y, gamma=0.0)[source]#

Module contents#

caustics.light.func.brightness_sersic(x0, y0, q, phi, n, Re, Ie, x, y, k, s=0.0)[source]#
caustics.light.func.brightness_star(x0, y0, theta_s, Ie, x, y, gamma=0.0)[source]#
caustics.light.func.k_lenstronomy(n: ArrayLike) ArrayLike[source]#

Computes the value of k for the Sersic profile, as used in the lenstronomy package.

Parameters:

n (ArrayLike) –

The Sersic index, which describes the degree of concentration of the source.

Unit: unitless

Returns:

k – The value of k for the Sersic profile.

Unit: unitless

Return type:

ArrayLike

caustics.light.func.k_sersic(n: ArrayLike) ArrayLike[source]#

Computes the value of k for the Sersic profile.

Parameters:

n (ArrayLike) –

The Sersic index, which describes the degree of concentration of the source.

Unit: unitless

Returns:

k – The value of k for the Sersic profile.

Unit: unitless

Return type:

ArrayLike