hmf.cosmology.cosmo

Module dealing with cosmological models.

The main class is Cosmology, which is a framework wrapping the astropy cosmology classes, while converting it to a hmf._framework.Framework for use in this package.

Also provided in the namespace are the pre-defined cosmologies from astropy: WMAP5, WMAP7, WMAP9, Planck13 and Planck15, which may be used as arguments to the Cosmology framework. All custom subclasses of astropy.cosmology.FLRW may be used as inputs.

Functions

astropy_to_colossus(cosmo[, name])

Convert an astropy cosmology to a COLOSSUS cosmology

get_cosmo(name)

Returns a FLRW cosmology given a string (must be one defined in this module).

Classes

Cosmology(*args, **kwargs)

Basic Cosmology object.