Skip to content

Instantly share code, notes, and snippets.

@jhidding
jhidding / cosmology.py
Created October 25, 2023 14:32
Compute growing mode solution
from scipy.integrate import quad
class Cosmology:
"""This object stores all relevant information wrt the background
cosmology, parametrized by OmegaM, OmegaL and H0."""
def __init__(self, H0, OmegaM, OmegaL):
self.H0 = H0
self.OmegaM = OmegaM
self.OmegaL = OmegaL
self.OmegaK = 1 - OmegaM - OmegaL