Skip to content

Commit 957a08e

Browse files
nspopehyanwong
authored andcommitted
Fix quadpack warnings in tests
1 parent a1173c7 commit 957a08e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,13 +2064,13 @@ def test_moments_numerically(self):
20642064
beta = 1.7
20652065
demography = PopulationSizeHistory([1000, 2000, 3000], [500, 2500])
20662066
numer_mn, _ = scipy.integrate.quad(
2067-
lambda t: demography.to_natural_timescale(np.array([t]))
2067+
lambda t: demography.to_natural_timescale(np.array([t])).item()
20682068
* scipy.stats.gamma.pdf(t, alpha, scale=1 / beta),
20692069
0,
20702070
np.inf,
20712071
)
20722072
numer_va, _ = scipy.integrate.quad(
2073-
lambda t: demography.to_natural_timescale(np.array([t])) ** 2
2073+
lambda t: demography.to_natural_timescale(np.array([t])).item() ** 2
20742074
* scipy.stats.gamma.pdf(t, alpha, scale=1 / beta),
20752075
0,
20762076
np.inf,

0 commit comments

Comments
 (0)