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.
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.