4949import numpy as np
5050from scipy .special import spherical_jn , spherical_yn
5151from scipy .special import legendre_p_all
52- from scipy .integrate import trapezoid
5352
5453from . import Quantity , index_ratio , mie_specfuncs
5554from . import size_parameter , ureg
@@ -1308,8 +1307,8 @@ def integrate_intensity_complex_medium(dscat, thetas, kd,
13081307 integrand_perp = dsigma_2 * np .abs (np .sin (thetas ))
13091308
13101309 # Integrate over theta
1311- integral_par = trapezoid (integrand_par , x = thetas )
1312- integral_perp = trapezoid (integrand_perp , x = thetas )
1310+ integral_par = np . trapezoid (integrand_par , x = thetas )
1311+ integral_perp = np . trapezoid (integrand_perp , x = thetas )
13131312
13141313 # integrate over phi: multiply by factor to integrate over phi
13151314 # (this factor is the integral of cos(phi)**2 and sin(phi)**2 in
@@ -1330,8 +1329,10 @@ def integrate_intensity_complex_medium(dscat, thetas, kd,
13301329 integrand_2 = dsigma_2 * np .abs (np .sin (thetas ))
13311330
13321331 # Integrate over theta and phi
1333- sigma_1 = trapezoid (trapezoid (integrand_1 , x = thetas , axis = 1 ), x = phis )
1334- sigma_2 = trapezoid (trapezoid (integrand_2 , x = thetas , axis = 1 ), x = phis )
1332+ sigma_1 = np .trapezoid (np .trapezoid (integrand_1 , x = thetas , axis = 1 ),
1333+ x = phis )
1334+ sigma_2 = np .trapezoid (np .trapezoid (integrand_2 , x = thetas , axis = 1 ),
1335+ x = phis )
13351336
13361337 # kd has trailing axes for theta (and possibly phi) that are no longer
13371338 # needed after the integration. We remove them here
0 commit comments