Skip to content

Commit

Permalink
Merge pull request #62 from michael7198/update-function-names
Browse files Browse the repository at this point in the history
Change scipy.integrate.simps to scipy.integrate.simpson
  • Loading branch information
dangilman authored Sep 3, 2024
2 parents 5eac077 + b61d307 commit fe39206
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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 requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Sphinx==1.7.1
twine==1.10.0
numpy>1.23
astropy>=2.0
scipy>=0.19.1
scipy>=1.6.0
colossus>=1.3.1
h5py>=3.9.0
mcfit>=0.0.21
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 fe39206

Please sign in to comment.