Skip to content

Commit

Permalink
test: add sampling integration test for truncate_log_q
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-will committed Nov 21, 2023
1 parent b4bbeb0 commit a1dcbb2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_sampling/test_standard_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,24 @@ def test_constant_volume_mode(integration_model, tmpdir):
fs.run(plot=False)


@pytest.mark.slow_integration_test
def test_truncate_log_q(integration_model, tmpdir):
"""Test sampling with truncate_log_q"""
output = str(tmpdir.mkdir("test"))
fs = FlowSampler(
integration_model,
output=output,
nlive=500,
plot=False,
proposal_plots=False,
constant_volume_mode=False,
latent_prior="flow",
truncate_log_q=True,
)
fs.run(plot=False)
assert fs.ns.finalised


@pytest.mark.slow_integration_test
def test_prior_sampling(integration_model, tmpdir):
"""Test prior sampling"""
Expand Down

0 comments on commit a1dcbb2

Please sign in to comment.