Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxtax committed Jan 15, 2025
1 parent 3faae09 commit b065709
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/model/test_model_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def model_wrapped3(mu):
pm.Normal("x", mu, 1.0, dims="obs")

mw3 = model_wrapped3(0.0, coords=coords)
mw4 = model_wrapped(np.array([np.nan]), coords=coords)

np.testing.assert_equal(model.point_logps(), mw.point_logps())
np.testing.assert_equal(mw.point_logps(), mw2.point_logps())
assert mw3["mu"] in mw3.data_vars
assert "mu" not in mw4

0 comments on commit b065709

Please sign in to comment.