diff --git a/tests/test_sampling.py b/tests/test_sampling.py index d2fc0b1..e8ebed0 100644 --- a/tests/test_sampling.py +++ b/tests/test_sampling.py @@ -87,7 +87,7 @@ def gradient(x): hmc.run(10) - assert np.linalg.norm(hmc.x - ref_hmc) < 1.0e-14 + assert np.allclose(hmc.x,ref_hmc) @pytest.fixture(params=["flip_parallel", "flip_serial"]) def flip_type(request):