Skip to content

Commit

Permalink
Update scipy.integrate.simps -> .simpson.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 693453498
  • Loading branch information
jburnim authored and tensorflower-gardener committed Nov 5, 2024
1 parent a90fe8f commit b0a692b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow_probability/python/distributions/bates_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b0a692b

Please sign in to comment.