Skip to content
Snippets Groups Projects
Commit a54b0f5a authored by Kipp Cannon's avatar Kipp Cannon
Browse files

DatalessLnSignalDensity:

- use TYPICAL_HORIZON_DISTANCE constant instead of 100. for the typical
  horizon distance
parent ec3859c1
No related branches found
No related tags found
No related merge requests found
......@@ -563,15 +563,15 @@ class DatalessLnSignalDensity(LnSignalDensity):
# evaluate P(t) \propto number of templates
lnP = math.log(len(self.template_ids))
# Add P(instruments | horizon distances)
# Assume all instruments have 100 Mpc
# horizon distance
horizons = dict.fromkeys(segments, 100.)
# Add P(instruments | horizon distances). assume all
# instruments have TYPICAL_HORIZON_DISTANCE horizon
# distance
horizons = dict.fromkeys(segments, TYPICAL_HORIZON_DISTANCE)
try:
lnP += math.log(self.InspiralExtrinsics.p_of_instruments_given_horizons(snrs.keys(), horizons))
except ValueError:
# The code raises a value error when a needed horizon distance is zero
# raises ValueError when a needed horizon distance
# is zero
return NegInf
# Evaluate dt, dphi, snr probability
......
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