py21cmmc.cosmoHammer.LikelihoodComputationChain.build_model_data#

LikelihoodComputationChain.build_model_data(p=None)[source]#

For a given set of parameters, generate model data for the entire core chain.

Parameters:

p (list or Params object, optional) – The parameters at which to evaluate the model data.

Returns:

ctx (dict-like) – A filled context object containing all model quantities generated by core modules in the chain.

Notes

The data generated by this method should ideally be deterministic, so that input parameters map uniquely to output data. All data necessary to fully evaluate probabilities of mock data from the model data should be determined in this method (including model uncertainties, if applicable).