This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer