From 57ce0af230ff3c76e9db961849c43e6da6c03e83 Mon Sep 17 00:00:00 2001 From: Michael Martinez Date: Mon, 26 Aug 2024 12:56:52 -0500 Subject: [PATCH] changes scipy.integrate.simps to scipy.integrate.simpson as the former has been deprecated in scipy 1.14 --- pyHalo/realization_extensions.py | 2 +- pyHalo/utilities.py | 2 +- tests/test_utilities.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyHalo/realization_extensions.py b/pyHalo/realization_extensions.py index 28fe9897..4ac1e44b 100644 --- a/pyHalo/realization_extensions.py +++ b/pyHalo/realization_extensions.py @@ -11,7 +11,7 @@ from copy import deepcopy from scipy.interpolate import RectBivariateSpline import time -from scipy.integrate import simps +from scipy.integrate import simpson as simps from scipy.special import eval_chebyt from scipy.optimize import curve_fit from mcfit import Hankel diff --git a/pyHalo/utilities.py b/pyHalo/utilities.py index 0d19ab70..cc7c2c91 100644 --- a/pyHalo/utilities.py +++ b/pyHalo/utilities.py @@ -4,7 +4,7 @@ from pyHalo.Cosmology.cosmology import Cosmology from scipy.integrate import quad from pyHalo.Halos.lens_cosmo import LensCosmo -from scipy.integrate import simps +from scipy.integrate import simpson as simps from pyHalo.concentration_models import preset_concentration_models from lenstronomy.LensModel.lens_model import LensModel diff --git a/tests/test_utilities.py b/tests/test_utilities.py index 7ee5d157..d269565c 100644 --- a/tests/test_utilities.py +++ b/tests/test_utilities.py @@ -1,6 +1,6 @@ from lenstronomy.LensModel.lens_model import LensModel import numpy.testing as npt -from scipy.integrate import simps +from scipy.integrate import simpson as simps import numpy as np from pyHalo.utilities import interpolate_ray_paths, de_broglie_wavelength, delta_sigma, ITSampling, \ inverse_transform_sampling, delta_kappa, nfw_velocity_dispersion