py21cmmc.core.CoreLightConeModule#

class py21cmmc.core.CoreLightConeModule(*, name='', max_redshift=None, **kwargs)[source]#

Core module for evaluating lightcone simulations.

See CoreCoevalModule for info on all parameters, which are identical to this class, with the exception of redshift, which in this case must be a scalar.

This module will add the following quantities to the context:

  • lightcone: a LightCone instance.

Methods

__init__(*[, name, max_redshift])

build_model_data(ctx)

Compute all data defined by this core and add it to the context.

convert_model_to_mock(ctx)

Generate random mock data.

prepare_storage(ctx, storage)

Add variables to dict which cosmoHammer will automatically store with the chain.

setup()

Setup the chain.

simulate_mock(ctx)

Generate all mock data and add it to the context.

Attributes

chain

Reference to the LikelihoodComputationChain containing this core.

core_primary

The first core that appears in the requirements.

parameter_names

Names of the parameters of the full chain.

required_cores