diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dd5fbb4e7f103401579b787c47c54c54bdd14714..b88a77cdbcf2dfc1106d3725cd8638c6aebb4d00 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,11 +22,11 @@ exitcode-jessie: - pip install coverage - pip install coverage-badge - coverage erase - - coverage run -a test/prior_tests.py - - coverage run -a test/tests.py - - coverage run -a test/waveform_generator_tests.py - - coverage run -a test/noise_realisation_tests.py - - coverage html --include=tupak/* + - coverage run --include=tupak/* -a test/prior_tests.py + - coverage run --include=tupak/* -a test/tests.py + - coverage run --include=tupak/* -a test/waveform_generator_tests.py + - coverage run --include=tupak/* -a test/noise_realisation_tests.py + - coverage html - coverage-badge -o coverage_badge.svg -f artifacts: paths: diff --git a/README.md b/README.md index 08f2f969933964909670540a79f82d24f6a831d5..3fd3060dbd9daab3d4282c8f41685a4eb22970b2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [](https://git.ligo.org/Monash/tupak/commits/master) -[]( +[]( https://monash.docs.ligo.org/tupak/) # Tupak diff --git a/test/tests.py b/test/tests.py index 07f09b9bb5c57b4abfd372b0dc0e24334b8e9430..fabe4559b6d68cbdd980de3c611d21ce16c7da8f 100644 --- a/test/tests.py +++ b/test/tests.py @@ -57,8 +57,10 @@ class Test(unittest.TestCase): priors['luminosity_distance'] = tupak.prior.Uniform( name='luminosity_distance', minimum=dL - 10, maximum=dL + 10) - result = tupak.sampler.run_sampler(likelihood, priors, sampler='nestle') - self.assertAlmostEqual(np.mean(result.samples), dL, delta=np.std(result.samples)) + result = tupak.sampler.run_sampler( + likelihood, priors, sampler='nestle', verbose=False, npoints=100) + self.assertAlmostEqual(np.mean(result.samples), dL, + delta=np.std(result.samples)) if __name__ == '__main__':