Cosmological modelling (cosmology)

Provide general and fiducial cosmological models and compute derived model quantities.

Cosmological models are implemented by nbodykit (see documentation).

BaseModel(*args, **kwargs)

Fixed (fiducial) cosmological model built with a parameter dictionary read from an external file, e.g.


class harmonia.cosmology.BaseModel(*args: Any, **kwargs: Any)[source]

Bases: Cosmology

Fixed (fiducial) cosmological model built with a parameter dictionary read from an external file, e.g. with file contents

{
    'h': 0.70,
    'Omega0_b': 0.044,
    'Omega0_cdm': 0.226,
    'sigma8': 0.8,
}
Parameters:
  • source_file (str or pathlib.Path) – Cosmological parameter file (as a Python dictionary).

  • comm (mpi4py.Comm or None, optional) – MPI communicator (default is None).