- class py21cmfast.inputs.CosmoParams(*args, **kwargs)¶
Cosmological parameters (with defaults) which translates to a C struct.
To see default values for each parameter, use
CosmoParams._defaults_. All parameters passed in the constructor are also saved as instance attributes which should be considered read-only. This is true of all input-parameter classes.
Default parameters are based on Plank18, https://arxiv.org/pdf/1807.06209.pdf, Table 2, last column. [TT,TE,EE+lowE+lensing+BAO]
SIGMA_8 (float, optional) – RMS mass variance (power spectrum normalisation).
hlittle (float, optional) – The hubble parameter, H_0/100.
OMm (float, optional) – Omega matter.
OMb (float, optional) – Omega baryon, the baryon component.
POWER_INDEX (float, optional) – Spectral index of the power spectrum.
Make a fresh copy of the instance with arbitrary parameters updated.
Make any conversions of values before saving to the instance.
Obtain the C-side field names of this struct.
Obtain the C-side fields of this struct.
Obtain all pointer fields of the struct (typically simulation boxes).
Delete the underlying C object, forcing it to be rebuilt.
Update the parameters of an existing class structure.
Omega lambda, dark energy density.
Return an astropy cosmology object for this cosmology.
Pure python dictionary representation of this class, as it would appear in C.
List names of fields of the underlying C struct.
List of fields of the underlying C struct (a list of tuples of "name, type").
List of names of fields which have pointer type in the C struct.
List of names of fields which have primitive type in the C struct.
A pure-python dictionary representation of the corresponding C structure.
Dictionary which if passed to its own constructor will yield an identical copy.