bilby.gw.cosmology.set_cosmology

bilby.gw.cosmology.set_cosmology(cosmology=None)[source]

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

Parameters:
cosmology: astropy.cosmology.FLRW, str, dict
Description of cosmology, one of:

None - Use DEFAULT_COSMOLOGY Instance of astropy.cosmology.FLRW subclass String with name of known Astropy cosmology, e.g., “Planck13” Dictionary with arguments required to instantiate the cosmology class.