py21cmmc.core.CoreBase.build_model_data#

CoreBase.build_model_data(ctx)[source]#

Construct model data and place it in the context.

The data generated by this method should ideally be deterministic, so that input parameters (which are inherently contained in the ctx object) map uniquely to output data. The addition of stochasticity in order to produce mock data is done in the convert_model_to_mock() method. 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).

Parameters:

ctx (dict-like) – The context, from which parameters are accessed.

Returns:

dct (dict) – A dictionary of data which was simulated.