hmf.density_field.transfer_models.check_boltzmann_cosmology

hmf.density_field.transfer_models.check_boltzmann_cosmology(cosmo: FLRW, name: str) → None[source]

Raise an error if a Boltzmann code (CAMB, CLASS) cannot compute cosmo.

Parameters:
  • cosmo – The cosmology.

  • name – Name of the model using the Boltzmann code, used in the error messages.

Raises:

ValueError – If cosmo is not a LambdaCDM, wCDM or w0waCDM cosmology, or does not set the baryon density or the CMB temperature.