py21cmmc.core.CoreBase#

class py21cmmc.core.CoreBase(store=None)[source]#

Base module for all cores.

Methods

__init__([store])

build_model_data(ctx)

Construct model data and place it in 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()

Perform any post-init setup of the object.

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