pybird.cosmo module

class pybird.cosmo.Cosmo(config)[source]

Bases: object

A Class to compute the linear power spectrum and growth factors from cosmological parameters.

This class provides an interface to various linear cosmology computation engines, including CLASS, CosmoPower emulator, and symbolic solvers. It handles the calculation of linear matter power spectra, scale-independent growth factors and rates, and other cosmological quantities needed for perturbation theory calculations.

c

Configuration dictionary holding parameters for calculations.

Type:

dict

set_cosmo()[source]

Compute linear cosmological quantities from input parameters using a specified backend module (class, CPJ, or Symbolic). Returns a dictionary containing computed quantities like the linear matter power spectrum, growth factors and rates, and parameters for AP effect.

set_cosmo(cosmo_dict, module='class', engine=None)[source]