onepower.hmi.CosmologyBase#

class onepower.hmi.CosmologyBase(*args, **kwargs)[source]#

A cosmology base class.

Methods

__init__([z_vec, h0, omega_c, omega_b, w0, ...])

clone(**kwargs)

Create and return an updated clone of the current object.

f_Mead(x, y, p0, p1, p2, p3)

Fitting function from Mead et al. 2021 (2009.01858), eq A3, used in \(\delta_c\) and \(\Delta_{\rm v}\) calculations.

get_all_parameter_defaults([recursive])

Dictionary of all parameters and defaults.

get_all_parameter_names()

Yield all parameter names in the class.

get_dependencies(*q)

Determine all parameter dependencies of the quantities in q.

parameter_info([names])

Prints information about each parameter in the class.

quantities_available()

Obtain a list of all available output quantities.

update(**kwargs)

Update parameters of the framework with kwargs.

validate()

Perform validation of the input parameters as they relate to each other.

Attributes

Dv_Mead

Overdensity \(\Delta_{\rm v}\) fitting function from Mead et al. 2021 (2009.01858), eq A.2.

Neff

Effective number of neutrino species.

cosmo_model

Return the astropy cosmology object assuming Flatw0waCDM model.

dc_Mead

The critical overdensity for collapse \(\delta_c\) fitting function from Mead et al. 2021 (2009.01858).

get_mead_accumulated_growth

Calculates the accumulated growth at scale factor 'a'.

get_mead_growth

Return the Mead growth factor at the scale factors.

get_mead_growth_fnc

Solve the linear growth ODE and returns an interpolating function for the solution.

h0

Hubble parameter (small h).

log10T_AGN

Log10 of AGN temperature.

m_nu

Neutrino mass.

n_s

Spectral index.

omega_b

Baryon density parameter.

omega_c

Cold dark matter density parameter.

omega_m

Matter density parameter.

parameter_values

Dictionary of all parameters and their current values

scale_factor

Return the scale factor.

sigma_8

Amplitude of matter fluctuations on 8 Mpc scales.

tcmb

Temperature of the CMB.

w0

Dark energy equation of state parameter.

wa

Dark energy equation of state parameter.

z_vec

Array of redshifts.