py21cmmc.likelihood.Likelihood1DPowerLightcone#
- class py21cmmc.likelihood.Likelihood1DPowerLightcone(*args, datafile='', nchunks=1, **kwargs)[source]#
A likelihood very similar to
Likelihood1DPowerCoeval
, except for a lightcone.This likelihood is vectorized i.e., it accepts an array of
astro_params
, but only when used withCore21cmEMU
.Since most of the functionality is the same, please see the other documentation for details.
Methods
__init__
(*args[, datafile, nchunks])computeLikelihood
(model)Compute the likelihood given a model.
compute_power
(box, length, n_psbins[, ...])Compute power spectrum from coeval box.
from_builtin_data
([datafile])Create the class loading in built-in data.
Compute and return a model dictionary at the fiducial set of parameters.
reduce_data
(ctx)Reduce the data in the context to a list of models (one for each redshift chunk).
setup
()Perform post-init setup.
store
(model, storage)Store the model into backend storage.
Attributes
Reference to the
LikelihoodComputationChain
containing this core.The first core that appears in the requirements.
Splines of data power spectra.
Splines of noise power spectra.
The PS core that is paired with this likelihood.
Names of the parameters of the full chain.
The redshifts of coeval simulations.