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 with Core21cmEMU.

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.

get_fiducial_model()

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

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 PS 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