This documentation has moved and is outdated! Please visit the new site at bilby-dev.github.io/bilby/

bilby.gw.cosmology

Wrappers to Astropy functionality for specifying the cosmology to use.

Functions

get_cosmology([cosmology])

Get an instance of a astropy.cosmology.FLRW subclass.

set_cosmology([cosmology])

Set an instance of a astropy.cosmology.FLRW subclass as the default cosmology.

z_at_value(func, fval, **kwargs)

Wrapped version of astropy.cosmology.z_at_value to return float rather than an astropy Quantity as returned for astropy>=5.