Skip to content

Commit

Permalink
changes scipy.integrate.simps to scipy.integrate.simpson as the forme…
Browse files Browse the repository at this point in the history
…r has been deprecated in scipy 1.14
  • Loading branch information
michael7198 committed Aug 26, 2024
1 parent 5eac077 commit 57ce0af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyHalo/realization_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyHalo/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/test_utilities.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 57ce0af

Please sign in to comment.