Skip to content
Snippets Groups Projects
Commit 8c03a6c1 authored by Brian Moe's avatar Brian Moe
Browse files

Fix Bug #979 MBTA mchirp/mass values incorrect.

parent e0388e27
No related branches found
No related tags found
No related merge requests found
......@@ -229,10 +229,11 @@ def populate_inspiral_tables(MBTA_frame, set_keys = MBTA_set_keys, \
row.set_ifos(detectors)
cid = lsctables.CoincTable.get_next_id()
row.coinc_event_id = cid
row.end_time = end_time['H1'].seconds
row.end_time_ns = end_time['H1'].nanoseconds
row.mass = (sum(mass1.values()) + sum(mass2.values()))/3
row.mchirp = sum(mchirp.values())/3
representative_detector = detectors[0]
row.end_time = end_time[representative_detector].seconds
row.end_time_ns = end_time[representative_detector].nanoseconds
row.mass = (sum(mass1.values()) + sum(mass2.values()))/len(detectors)
row.mchirp = sum(mchirp.values())/len(detectors)
#the snr here is really the snr NOT effective snr
row.snr = pow(sum([x*x for x in snr.values()]),0.5)
if far is not None:
......
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