From 04db3bdd99e1a27ca926be9a59dfa30ff2f2da06 Mon Sep 17 00:00:00 2001 From: Marc Penuliar <marc.penuliar@ligo.org> Date: Tue, 7 Feb 2023 20:14:30 +0000 Subject: [PATCH] EXAMPLE: More realistic tidal values. --- AUTHORS.md | 1 + .../binary_neutron_star_example.py | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/AUTHORS.md b/AUTHORS.md index 7bf380bd6..2ae71ee83 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -88,3 +88,4 @@ Virginia d'Emilio Vivien Raymond Ka-Lok Lo Isaac Legred +Marc Penuliar diff --git a/examples/gw_examples/injection_examples/binary_neutron_star_example.py b/examples/gw_examples/injection_examples/binary_neutron_star_example.py index 90308c3c5..e9c1bb70a 100644 --- a/examples/gw_examples/injection_examples/binary_neutron_star_example.py +++ b/examples/gw_examples/injection_examples/binary_neutron_star_example.py @@ -36,8 +36,8 @@ injection_parameters = dict( geocent_time=1126259642.413, ra=1.375, dec=-1.2108, - lambda_1=400, - lambda_2=450, + lambda_1=545, + lambda_2=1346, ) # Set the duration and sampling frequency of the data segment that we're going @@ -102,7 +102,15 @@ priors["symmetric_mass_ratio"] = bilby.core.prior.Uniform( 0.1, 0.25, name="symmetric_mass_ratio" ) priors["lambda_tilde"] = bilby.core.prior.Uniform(0, 5000, name="lambda_tilde") -priors["delta_lambda"] = bilby.core.prior.Uniform(-5000, 5000, name="delta_lambda") +priors["delta_lambda"] = bilby.core.prior.Uniform(-500, 1000, name="delta_lambda") + +priors["lambda_1"] = bilby.core.prior.Constraint( + name="lambda_1", minimum=0, maximum=10000 +) +priors["lambda_2"] = bilby.core.prior.Constraint( + name="lambda_2", minimum=0, maximum=10000 +) + # Initialise the likelihood by passing in the interferometer data (IFOs) # and the waveform generator -- GitLab