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.

get_fiducial_model()

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

chain

Reference to the LikelihoodComputationChain containing this core.

core_primary

The first core that appears in the requirements.

data_spline

Splines of data power spectra.

noise_spline

Splines of noise power spectra.

paired_core

The 21cmEMU core that is paired with this likelihood.

parameter_names

Names of the parameters of the full chain.

redshift

The redshifts of coeval simulations.

required_cores