Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve test_rtperiodicdiff.py Test Failures #327

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions model/src/test/test_rtperiodicdiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpyro
from jax import lax
from jax.typing import ArrayLike
from numpy.testing import assert_array_equal
from numpy.testing import assert_array_almost_equal, assert_array_equal
from pyrenew.deterministic import DeterministicVariable
from pyrenew.process import RtWeeklyDiffProcess

Expand Down Expand Up @@ -158,7 +158,7 @@ def test_rtweeklydiff_manual_reconstruction() -> None:
log_seed=params["log_rt_prior"]()[0], sd=noise, b=b
)

assert_array_equal(ans0, ans1)
assert_array_almost_equal(ans0, ans1)

return None

Expand Down