Skip to content

Commit b0a692b

Browse files
jburnimtensorflower-gardener
authored andcommitted
Update scipy.integrate.simps -> .simpson.
PiperOrigin-RevId: 693453498
1 parent a90fe8f commit b0a692b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_probability/python/distributions/bates_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def testBatesPDFisNormalized(self, total_count, bounds):
257257
x = tf.linspace(low, high, nx)
258258
y = self.evaluate(d.prob(x))
259259
dx = self.evaluate(x[1] - x[0])
260-
self.assertAllClose(scipy.integrate.simps(y=y, dx=dx), 1.,
260+
self.assertAllClose(scipy.integrate.simpson(y=y, dx=dx), 1.,
261261
atol=5e-05, rtol=5e-05)
262262

263263
def testBatesPDFonNaNs(self):

0 commit comments

Comments
 (0)