Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions autogalaxy/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def shear_angle_from(gamma_1: float, gamma_2: float, xp=np) -> float:
def multipole_k_m_and_phi_m_from(
multipole_comps: Tuple[float, float], m: int, xp=np
) -> Tuple[float, float]:
"""
r"""
Returns the multipole normalization value `k_m` and angle `phi` from the multipole component parameters.

The normalization and angle are given by:
Expand Down Expand Up @@ -333,7 +333,7 @@ def multipole_k_m_phi_m_and_shape_angle_from(
ellipse_angle: Optional[float],
xp=np
) -> Tuple[float, float, float]:
"""
r"""
Returns the multipole normalization value `k_m`, angle `phi` and shape_angle `s` from the multipole
component parameters. The shape angle is the difference between the angle of the underlying elliptical profile and
the multipole `phi_m` and is what defines the shape of the perturbation around the ellipse oriented towards the
Expand Down Expand Up @@ -404,7 +404,7 @@ def multipole_comps_from(
shape_angle: Optional[float]=None, ellipse_angle: Optional[float]=None,
xp=np
) -> Tuple[float, float]:
"""
r"""
Returns the multipole component parameters from their normalization value `k_m` and angle `phi`.

.. math::
Expand Down
2 changes: 1 addition & 1 deletion autogalaxy/ellipse/ellipse/ellipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(
ell_comps: Tuple[float, float] = (0.0, 0.0),
major_axis: float = 1.0,
):
"""
r"""
class representing an ellispe, which is used to perform ellipse fitting to 2D data (e.g. an image).

The elliptical components (`ell_comps`) of this profile are used to define the `axis_ratio` (q)
Expand Down
4 changes: 2 additions & 2 deletions autogalaxy/ellipse/ellipse/ellipse_multipole.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(
m=4,
multipole_comps: Tuple[float, float] = (0.0, 0.0),
):
"""
r"""
class representing the multipole of an ellispe with, which is used to perform ellipse fitting to
2D data (e.g. an image).

Expand Down Expand Up @@ -122,7 +122,7 @@ def __init__(
scaled_multipole_comps: Tuple[float, float] = (0.0, 0.0),
major_axis=1.0,
):
"""
r"""
class representing the multipole of an ellipse, which is used to perform ellipse fitting to
2D data (e.g. an image). This multipole is fit with its strength held relative to an ellipse with a
major_axis of 1, allowing for a set of ellipse multipoles to be fit at different major axes but with
Expand Down
2 changes: 1 addition & 1 deletion autogalaxy/profiles/geometry_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def __init__(
centre: Tuple[float, float] = (0.0, 0.0),
ell_comps: Tuple[float, float] = (0.0, 0.0),
):
"""
r"""
An elliptical profile, which describes the geometry of profiles defined by an ellipse.

The elliptical components (`ell_comps`) of this profile are used to define the `axis_ratio` (q)
Expand Down
2 changes: 1 addition & 1 deletion autogalaxy/profiles/light/standard/gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(
intensity: float = 0.1,
sigma: float = 1.0,
):
"""
r"""
The elliptical Gaussian light profile.

The intensity distribution of the profile is given by:
Expand Down
4 changes: 2 additions & 2 deletions autogalaxy/profiles/mass/dark/nfw.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(
kappa_s: float = 0.05,
scale_radius: float = 1.0,
):
"""
r"""
The elliptical NFW profiles, used to fit the dark matter halo of the lens.

Parameters
Expand Down Expand Up @@ -273,7 +273,7 @@ def __init__(
kappa_s: float = 0.05,
scale_radius: float = 1.0,
):
"""
r"""
The spherical NFW profiles, used to fit the dark matter halo of the lens.

Parameters
Expand Down
2 changes: 1 addition & 1 deletion autogalaxy/profiles/mass/stellar/gaussian_gradient.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(
mass_to_light_gradient: float = 0.0,
mass_to_light_radius: float = 1.0,
):
"""
r"""
The elliptical Gaussian light profile with a gradient in its mass to light conversion.

$\Psi (r) = \Psi_{o} \frac{(\sigma + 0.01)}{R_{ref}}^{\Tau}$
Expand Down
2 changes: 1 addition & 1 deletion autogalaxy/profiles/mass/total/isothermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def psi_from(grid, axis_ratio, core_radius, xp=np):
"""
r"""
Returns the $\Psi$ term in expressions for the calculation of the deflection of an elliptical isothermal mass
distribution. This is used in the `Isothermal` and `Chameleon` `MassProfile`'s.

Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,8 @@ dev = ["pytest", "black"]
"autogalaxy.config" = ["*"]

[tool.pytest.ini_options]
testpaths = ["test_autogalaxy"]
testpaths = ["test_autogalaxy"]
filterwarnings = [
"ignore:cuda_plugin_extension:UserWarning",
"ignore::DeprecationWarning:jax",
]
Loading