JaxCosmoProvider#

class cosmicjellyfish.cosmology.jaxcosmo_provider.JaxCosmoProvider(cosmopars, backend_parameters, cosmo_model, settings=None)[source]#

Bases: object

Build total-matter background and power-spectrum interpolators with jax-cosmo.

Parameters:
  • cosmopars (dict) – Cosmological parameters in CosmicJellyfish conventions.

  • backend_parameters (dict) – Content of jaxcosmo/default.yaml (ACCURACY and NUMERICS blocks).

  • cosmo_model (str) – "LCDM" or "w0waCDM".

  • settings (dict, optional) – Global cfg.settings. Its nonlinear flag selects the Halofit power (default True).

build()[source]#

Evaluate the theory and return the results namespace used by cosmo_functions.

Return type:

SimpleNamespace