Skip to content
Snippets Groups Projects
Commit d51aaf63 authored by RorySmith's avatar RorySmith
Browse files

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

parents 95b761b7 567cf3da
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -60,12 +60,9 @@ class Test(unittest.TestCase):
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))
result.label='corner.png'
result.outdir='./outdir'
result.plot_corner()
if __name__ == '__main__':
unittest.main()
self.assertAlmostEqual(np.mean(result.samples), dL,
delta=3*np.std(result.samples))
if __name__ == '__main__':
unittest.main()
......@@ -240,11 +240,11 @@ class Interferometer(object):
time_shift = self.time_delay_from_geocenter(
parameters['ra'],
parameters['dec'],
self.epoch)#parameters['geocent_time'])
self.epoch) # parameters['geocent_time'])
if self.time_marginalization:
dt = time_shift # when marginalizing over time we only care about relative time shifts between detectors and marginalized over
# all candidate coalescence times
dt = time_shift # when marginalizing over time we only care about relative time shifts between detectors and marginalized over
# all candidate coalescence times
else:
dt = self.epoch - (parameters['geocent_time'] - time_shift)
......@@ -543,7 +543,7 @@ def get_empty_interferometer(name):
minimum_frequency=40, maximum_frequency=2048, length=0.6,
latitude=52 + 14. / 60 + 42.528 / 3600, longitude=9 + 48. / 60 + 25.894 / 3600,
elevation=114.425, xarm_azimuth=115.9431, yarm_azimuth=21.6117),
'CE': Interferometer(name='CE', power_spectral_density=PowerSpectralDensity('CE_psd.txt'),
'CE': Interferometer(name='CE', power_spectral_density=PowerSpectralDensity(psd_file='CE_psd.txt'),
minimum_frequency=10, maximum_frequency=2048,
length=40, latitude=46 + 27. / 60 + 18.528 / 3600,
longitude=-(119 + 24. / 60 + 27.5657 / 3600), elevation=142.554, xarm_azimuth=125.9994,
......
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