Skip to content

Fix deprecated vectorize_if_needed function in Astropy 5.0

In bayestar_inject, use the method vectorize_redshift_method instead of vectorize_if_needed from astropy.cosmology.utils, because the latter was deprecated in Astropy 5.0.

See https://github.com/astropy/astropy/pull/12176.

Merge request reports