py21cmmc.likelihood.Likelihood1DPowerLightconeUpper#
- class py21cmmc.likelihood.Likelihood1DPowerLightconeUpper(datafile='', data=None, name='', *args, **kwargs)[source]#
Likelihood based on Chi^2 comparison of a 21 cm PS model to HERA H1C upper limit data.
- Parameters:
datafile (str, optional) – Input data should be in a .npz file, and contain the following fields: *
z_bands
: the redshift of the observation bands *bandx
: the power spectrum upper limits at redshift x *wfbandx
: the window function for band x *kwfbandx
: the k values [/Mpc] of the window function for band x
Methods
__init__
([datafile, data, name])computeLikelihood
(model)Compute the likelihood given 1D power spectrum values at the same k-bins as the data.
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)Get the computed core data in nice form.
setup
()Setup the object.
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 21cmEMU core that is paired with this likelihood.
Names of the parameters of the full chain.
The redshifts of coeval simulations.