PhotonComponent#
- class astropy.cosmology.traits.PhotonComponent[source]#
Bases:
objectThe cosmology has attributes and methods for the photon density.
Methods Summary
Ogamma(z)Return the density parameter for photons at redshift
z.Methods Documentation
- Ogamma(z)[source]#
Return the density parameter for photons at redshift
z.- Parameters:
- zQuantity-like [‘redshift’], numpy:array_like
Input redshift.
Changed in version 7.0: Passing z as a keyword argument is deprecated.
- Returns:
- Ogamma
array The energy density of photons relative to the critical density at each redshift.
- Ogamma