bilby.gw.cosmology.z_at_value

bilby.gw.cosmology.z_at_value(func, fval, **kwargs)[source]

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

See https://docs.astropy.org/en/stable/api/astropy.cosmology.z_at_value.html#astropy.cosmology.z_at_value for detailed documentation.