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

remove problematic test

parent ea28e7f1
No related branches found
No related tags found
No related merge requests found
......@@ -2,4 +2,3 @@ astropy
lalsuite<=6.48.1.dev20180823
gwpy
theano
cpnest
\ No newline at end of file
......@@ -127,25 +127,5 @@ class TestSampler(unittest.TestCase):
self.assertDictEqual(sampler_copy.__dict__, self.sampler.__dict__)
class TestCPNest(unittest.TestCase):
def setUp(self):
def func(x, mu, sigma): return (mu-x) ** 2 / (2 * sigma**2)
self.likelihood = tupak.core.likelihood.GaussianLikelihood(
np.random.uniform(0, 1, 100), np.random.uniform(0, 1, 100),
func)
def tearDown(self):
del self.likelihood
def test_cannot_run_with_gaussian_prior(self):
priors = dict(mu=tupak.prior.Gaussian(0, 1),
sigma=tupak.prior.Uniform(0, 1))
sampler = tupak.core.sampler.Cpnest(
likelihood=self.likelihood, priors=priors,
external_sampler='cpnest')
self.assertRaises(ValueError, lambda: sampler._run_external_sampler())
if __name__ == '__main__':
unittest.main()
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