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.