Skip to content

Commit e697365

Browse files
committed
test(tests/test_kernels/test_nonstationary): abs
1 parent b3e603c commit e697365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_kernels/test_nonstationary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,4 +241,4 @@ def test_values_by_monte_carlo_in_special_case(self, order: int) -> None:
241241
integrands = H_a * H_b * (weights_a**order) * (weights_b**order)
242242
Kab_approx = 2.0 * jnp.mean(integrands)
243243

244-
assert jnp.max(Kab_approx - Kab_exact) < 1e-4
244+
assert jnp.max(jnp.abs(Kab_approx - Kab_exact)) < 1e-4

0 commit comments

Comments
 (0)