py21cmmc.core.Core21cmEMU#
- class py21cmmc.core.Core21cmEMU(astro_params=None, redshift=None, k=None, name='', global_params=None, ctx_variables=('Tb', 'Tb_err', 'Ts', 'Ts_err', 'xHI', 'xHI_err', 'redshifts', 'PS_redshifts', 'PS', 'PS_err', 'Muv', 'UVLFs', 'UVLFs_err', 'UVLF_redshifts', 'k', 'tau', 'tau_err'), cache_dir=None, version='latest', store=[], *args, **kwargs)[source]#
A Core Module that loads 21cmEMU and uses it to obtain 21cmFAST summaries.
Notes
This core calls 21cmEMU and uses it to evaluate 21cmFAST summaries (power spectrum, global signal, neutral fraction, spin temperature) given a set of astro_params. This core is vectorized i.e., it accepts an array of
astro_params
.- Parameters:
redshift (float or array_like) – The redshift(s) at which to evaluate the summary statistics.
astro_params (dict or
AstroParams
) – Astrophysical parameters of reionization model according to Park+19 parametrization.version (str, optional) – Emulator version to use, defaults to ‘latest’.
Methods
__init__
([astro_params, redshift, k, name, ...])build_model_data
(ctx)Compute all data defined by this core and add it to the context.
Generate random mock data.
prepare_storage
(ctx, storage)Add variables to dict which cosmoHammer will automatically store with the chain.
setup
()Perform any post-init setup of the object.
simulate_mock
(ctx)Generate all mock data and add it to the context.
Attributes
Reference to the
LikelihoodComputationChain
containing this core.The first core that appears in the requirements.
Names of the parameters of the full chain.