firecrown.connector.mapping.MappingCAMB#
- class firecrown.connector.mapping.MappingCAMB(*, require_nonlinear_pk=False)[source]#
Bases:
Mapping
Mapping support for PyCAMB, the Python version of CAMB.
Note that the Python version of CAMB uses some different conventions from the Fortran version of CAMB. The two are not interchangeable.
- Parameters:
require_nonlinear_pk (
bool
) –
Public Methods:
Return the list of parameters handled by this mapping.
set_params_from_camb
(**params_values)Read the CAMB-style parameters from params_values.
Inherited from
Mapping
__init__
(*[, require_nonlinear_pk])- param require_nonlinear_pk:
Return the names of the expected cosmological parameters for this mapping.
transform_k_h_to_k
(k_h)Transform the given k_h (k over h) to k.
transform_p_k_h3_to_p_k
(p_k_h3)Transform the given \(p_k h^3 \to p_k\).
Transform distances h to \(h/h_0\).
set_params
(*, Omega_c, Omega_b, h[, A_s, sigma8])Sets the cosmological constants suitable a pyccl.core.CosmologyCalculator.
Converts redshift to scale factor.
Converts power spectrum from redshift to scale factor.
asdict
()Return a dictionary containing the cosmological constants.
get_H0
()Return the value of H0.