Skip to content

Commit

Permalink
small compile_logp test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFengler committed Dec 13, 2024
1 parent 5eeb2d4 commit 650c7aa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_hssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,14 @@ def test_prior_settings_basic(cavanagh_test):
assert isinstance(
model_2.params[model_2._parent].prior, dict
), "Prior assigned to parent is not a dict!"


def test_compile_logp(cavanagh_test):
model_1 = HSSM(
data=cavanagh_test,
global_formula="y ~ 1 + (1|participant_id)",
prior_settings=None,
)

out = model_1.compile_logp(model_1.initial_point(transformed=False))
assert out is not None

0 comments on commit 650c7aa

Please sign in to comment.