firecrown.connector.mapping.MappingCosmoSIS#
- class firecrown.connector.mapping.MappingCosmoSIS(*, require_nonlinear_pk=False)[source]#
Bases:
Mapping
Mapping support for CosmoSIS.
- Parameters:
require_nonlinear_pk (
bool
) –
Public Methods:
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_from_cosmosis
(cosmosis_params)Return a PyCCLCosmologyConstants object.
calculate_ccl_args
(sample)Calculate the arguments necessary for CCL for this sample.
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.
- calculate_ccl_args(sample)[source]#
Calculate the arguments necessary for CCL for this sample.
- Parameters:
sample (<module ‘cosmosis.datablock’ from ‘/home/docs/checkouts/readthedocs.org/user_builds/firecrown/conda/latest/lib/python3.12/site-packages/cosmosis/datablock/__init__.py’>) –
- get_params_names()[source]#
Return the names of the expected cosmological parameters for this mapping.
- set_params_from_cosmosis(cosmosis_params)[source]#
Return a PyCCLCosmologyConstants object.
This object has parameters equivalent to those read from CosmoSIS when using CAMB.
- Parameters:
cosmosis_params (
NamedParameters
) –