Skip to content
Merged
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
14 changes: 7 additions & 7 deletions autogalaxy/cosmology/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,15 @@ def __init__(
Ob0: float = 0.04897,
):
"""
A wrapper for the astropy `FlatLambdaCDM` cosmology class, which allows it to be used for modeling such
that the cosmological parameters are free parameters which can be fitted for.
A JAX-compatible implementation of the FlatLambdaCDM cosmology model, which allows it to be used for
modeling such that the cosmological parameters are free parameters which can be fitted for.

The interface of this class is the same as the astropy `FlatLambdaCDM` class, it simply overwrites the
__init__ method and inherits from it in a way that ensures **PyAutoFit** can compose a model from it
without issue.
This is a custom implementation designed to work with both NumPy and JAX backends, enabling automatic
differentiation and GPU acceleration when needed. The interface and parameter naming conventions follow
the astropy `FlatLambdaCDM` class for compatibility.

The class also inherits from `LensingCosmology`, which is a class that provides additional functionality
for calculating lensing specific quantities in the cosmology.
The class inherits from `LensingCosmology`, which provides additional functionality for calculating
lensing specific quantities in the cosmology.

Parameters
----------
Expand Down
Loading