Skip to content
Snippets Groups Projects
Commit f4fb22f1 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Merge branch 'master' of git.ligo.org:Monash/tupak

parents b81ff086 a86c8c84
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -24,14 +24,14 @@ exitcode-jessie:
- python setup.py install
- coverage erase
- coverage run --include=tupak/* -a test/detector_tests.py
- coverage run --include=tupak/* --omit=tupak/* -a test/example_tests.py
- coverage run --include=tupak/* --omit=tupak/* -a test/noise_realisation_tests.py
- coverage run --include=tupak/* -a test/prior_tests.py
- coverage run --include=tupak/* -a test/sampler_tests.py
- coverage run --include=tupak/* --omit=tupak/* -a test/tests.py
- coverage run --include=tupak/* -a test/waveform_generator_tests.py
- coverage html
- coverage-badge -o coverage_badge.svg -f
- coverage run --omit=* -a test/example_tests.py
- coverage run --omit=* -a test/noise_realisation_tests.py
- coverage run --omit=* -a test/tests.py
# Make the documentation
- pip install -r docs/requirements.txt
......
......@@ -389,3 +389,7 @@ class TestDetector(unittest.TestCase):
self.ifo.data = np.array([2])
self.ifo.power_spectral_density.power_spectral_density_interpolated = MagicMock(return_value=np.array([1]))
self.assertTrue(np.array_equal(self.ifo.whitened_data, np.array([2])))
if __name__ == '__main__':
unittest.main()
......@@ -127,4 +127,8 @@ class TestSampler(unittest.TestCase):
def test_base_run_sampler(self):
sampler_copy = copy.copy(self.sampler)
self.sampler._run_external_sampler()
self.assertDictEqual(sampler_copy.__dict__, self.sampler.__dict__)
\ No newline at end of file
self.assertDictEqual(sampler_copy.__dict__, self.sampler.__dict__)
if __name__ == '__main__':
unittest.main()
......@@ -96,4 +96,4 @@ class TestSourceModelSetter(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
\ No newline at end of file
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