From 650c7aa20b976e945cd71cfb61e558ca69994417 Mon Sep 17 00:00:00 2001 From: Fengler Date: Thu, 12 Dec 2024 19:45:33 -0500 Subject: [PATCH] small compile_logp test --- tests/test_hssm.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_hssm.py b/tests/test_hssm.py index 66c11dbc..c11e3339 100644 --- a/tests/test_hssm.py +++ b/tests/test_hssm.py @@ -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