Commit bce2c685 authored by Gregory Ashton's avatar Gregory Ashton

Fix tests and bug in GW150914

parent 74be5f35
Pipeline #74279 passed with stage
in 5 minutes and 53 seconds
......@@ -52,6 +52,7 @@ for det in ["H1", "L1"]:
ifo_list.append(ifo)
logger.info("Saving data plots to {}".format(outdir))
bilby.core.util.check_directory_exists_and_if_not_mkdir(outdir)
ifo_list.plot_data(outdir=outdir, label=label)
# We now define the prior.
......
......@@ -43,8 +43,8 @@ class Test(unittest.TestCase):
def test_examples(self):
""" Loop over examples to check they run """
examples = ['examples/other_examples/linear_regression.py',
'examples/other_examples/linear_regression_unknown_noise.py',
examples = ['examples/core_examples/linear_regression.py',
'examples/core_examples/linear_regression_unknown_noise.py',
]
for filename in examples:
print("Testing {}".format(filename))
......
......@@ -43,9 +43,9 @@ class Test(unittest.TestCase):
def test_examples(self):
""" Loop over examples to check they run """
examples = ['examples/injection_examples/fast_tutorial.py',
'examples/injection_examples/marginalized_likelihood.py',
'examples/open_data_examples/GW150914.py',
examples = ['examples/gw_examples/injection_examples/fast_tutorial.py',
'examples/gw_examples/injection_examples/marginalized_likelihood.py',
'examples/gw_examples/data_examples/GW150914.py',
]
for filename in examples:
print("Testing {}".format(filename))
......
......@@ -119,11 +119,6 @@ class TestPackagedPriors(unittest.TestCase):
self.assertTrue('chi_1' in prior_dict)
self.assertTrue('chi_2' in prior_dict)
def test_GW150914(self):
filename = 'GW150914.prior'
prior_dict = bilby.gw.prior.BBHPriorDict(filename=filename)
self.assertTrue('geocent_time' in prior_dict)
def test_precessing(self):
filename = 'precessing_binary_neutron_stars.prior'
prior_dict = bilby.gw.prior.BBHPriorDict(filename=filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment