Skip to content
Snippets Groups Projects
Commit 28d00120 authored by Colm Talbot's avatar Colm Talbot
Browse files

TEST: add test run unit test

parent 63c71cb7
No related branches found
No related tags found
No related merge requests found
......@@ -901,9 +901,10 @@ class Dynesty(NestedSampler):
"""Run the sampler very briefly as a sanity test that it works."""
import pandas as pd
self._set_sampling_method()
self.sampler = self.sampler_init(
loglikelihood=self.log_likelihood,
prior_transform=self.prior_transform,
loglikelihood=_log_likelihood_wrapper,
prior_transform=_prior_transform_wrapper,
ndim=self.ndim,
**self.sampler_init_kwargs,
)
......
......@@ -83,6 +83,9 @@ class TestDynesty(unittest.TestCase):
self.assertEqual([0, 4], self.sampler.kwargs["periodic"])
self.assertEqual([1, 3], self.sampler.kwargs["reflective"])
def test_run_test_runs(self):
self.sampler._run_test()
class ProposalsTest(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment