Source code for coolest.template.classes.cosmology

__author__ = 'aymgal'

from coolest.template.classes.base import APIBaseObject


[docs] class Cosmology(APIBaseObject): """Defines the cosmological model. Currently, only FlatLambdaCDM from astropy is supported, based on H0 and Omega_m. Parameters ---------- H0 : float Hubble constant, in km/s/Mpc Om0 : float Matter density at present time astropy_name : str, optional `astropy` model name, by default 'FlatLambdaCDM' """ def __init__(self, H0: float, Om0: float, astropy_name: str = 'FlatLambdaCDM') -> None:
[docs] self.H0 = H0
[docs] self.Om0 = Om0
[docs] self.astropy_name = astropy_name
super().__init__()