From b0a692b9dc553dce2d24149c2912194d26aa6196 Mon Sep 17 00:00:00 2001 From: jburnim Date: Tue, 5 Nov 2024 13:09:32 -0800 Subject: [PATCH] Update scipy.integrate.simps -> .simpson. PiperOrigin-RevId: 693453498 --- tensorflow_probability/python/distributions/bates_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow_probability/python/distributions/bates_test.py b/tensorflow_probability/python/distributions/bates_test.py index d252a675a6..f2ca52b216 100644 --- a/tensorflow_probability/python/distributions/bates_test.py +++ b/tensorflow_probability/python/distributions/bates_test.py @@ -257,7 +257,7 @@ def testBatesPDFisNormalized(self, total_count, bounds): x = tf.linspace(low, high, nx) y = self.evaluate(d.prob(x)) dx = self.evaluate(x[1] - x[0]) - self.assertAllClose(scipy.integrate.simps(y=y, dx=dx), 1., + self.assertAllClose(scipy.integrate.simpson(y=y, dx=dx), 1., atol=5e-05, rtol=5e-05) def testBatesPDFonNaNs(self):