Skip to content

Commit 7e0b0e6

Browse files
committed
Update: test condition
1 parent c2d74ab commit 7e0b0e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/retrieve/oe/test_oe_jax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def test_different_powers(self):
205205
y = self.sharp(0.0, "y")
206206
result = OE().retrieve(f, x, y)
207207

208-
self.assertAlmostEqual(np.max(result.cost), 0.0, delta=ATOL)
208+
self.assertAlmostEqual(np.percentile(result.cost, 0.99), 0.0, delta=ATOL)
209209
self.assertTrue(np.allclose(result.cost, 0.0, atol=ATOL))
210210

211211
def fuzzy(self, val, shape_like: Literal["x", "y"]) -> np.ndarray:

0 commit comments

Comments
 (0)