py21cmmc.cosmoHammer.LikelihoodComputationChain#
- class py21cmmc.cosmoHammer.LikelihoodComputationChain(params, *args, **kwargs)[source]#
Feature-laden replacement of
cosmoHammer.LikelihoodComputationChain.Methods
__init__(params, *args, **kwargs)Constructor for the likelihood chain
addCoreModule(module)Add a module to the likelihood module list.
addLikelihoodModule(module)Add a module to the likelihood module list.
build_model_data([p])For a given set of parameters, generate model data for the entire core chain.
computeLikelihoods(ctx)Computes the likelihoods by iterating thru all the modules.
createChainContext([p])Returns a new instance of a chain context.
pointer to the likelihood module list
pointer to the core module list
invokeCoreModule(coremodule, ctx)Call a particular coremodule, filling up given context.
invokeCoreModules(ctx)Iterates thru the core modules and invokes them
invokeLikelihoodModule(module, ctx)Invoke a given likelihood module.
isValid(p)checks if the given parameters are valid
setup()Run the setup of all cores and likelihoods.
simulate_mock([p])For a given set of parameters, generate mock data for the entire core chain.