Skip to content
Snippets Groups Projects
Commit 9d803f37 authored by Branson Stephens's avatar Branson Stephens
Browse files

Merge branch 'master' of ligo-vcs.phys.uwm.edu:/usr/local/git/gracedb

parents 3b31d9d3 254dee04
No related branches found
No related tags found
No related merge requests found
......@@ -430,7 +430,7 @@ class EventList(APIView):
d = {'error': 'Invalid query' }
return Response(d,status=status.HTTP_400_BAD_REQUEST)
events = events.order_by(sort)
events = events.order_by(sort).select_subclasses()
start = int(start)
count = int(count)
......
......@@ -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