pyccl.baryons.baryons_base module

class pyccl.baryons.baryons_base.Baryons(self, /, *args, **kwargs)[source]

Bases: CCLAutoRepr, CCLNamedClass

Baryons objects are used to include the effects of baryons on the non-linear matter power spectrum. Their main ingredient is a method include_baryonic_effects() that takes in a Pk2D and returns another Pk2D object that now accounts for baryonic effects (according to the model implemented in the corresponding Baryons object).

include_baryonic_effects(cosmo, pk)[source]

Apply baryonic effects to a given power spectrum.

Parameters:
  • cosmo (Cosmology) – Cosmological parameters.

  • pk (Pk2D) – power spectrum.

Returns:

Pk2D or None.