Skip to content
Snippets Groups Projects
Commit 9eac8fb9 authored by Chad Hanna's avatar Chad Hanna
Browse files

inspiral.py, lloidhandler.py: only provide sub-threshold snr time series if...

inspiral.py, lloidhandler.py: only provide sub-threshold snr time series if the detector is on at coalescence (Jolien's review request)
parent f0844c6d
No related branches found
No related tags found
No related merge requests found
...@@ -578,7 +578,7 @@ class GracedBWrapper(object): ...@@ -578,7 +578,7 @@ class GracedBWrapper(object):
self.__upload_aux_data(message, filename, tag, fobj.getvalue(), gracedb_ids) self.__upload_aux_data(message, filename, tag, fobj.getvalue(), gracedb_ids)
del fobj del fobj
def do_alerts(self, last_coincs, psddict, rankingstat_xmldoc_func): def do_alerts(self, last_coincs, psddict, rankingstat_xmldoc_func, seglistdicts):
gracedb_ids = [] gracedb_ids = []
# no-op short circuit # no-op short circuit
...@@ -653,7 +653,11 @@ class GracedBWrapper(object): ...@@ -653,7 +653,11 @@ class GracedBWrapper(object):
# for the highest peak that is coincident with all # for the highest peak that is coincident with all
# other triggers # other triggers
event_ifos = [event.ifo for event in last_coincs.sngl_inspirals(coinc_event.coinc_event_id)] event_ifos = [event.ifo for event in last_coincs.sngl_inspirals(coinc_event.coinc_event_id)]
triggerless_ifos = [ifo for ifo in self.instruments if ifo not in event_ifos] # FIXME not the best way to do this and also not
# gauranteed to work if we change segment names. only
# consider ifos that are "on" at this time, i.e., in
# seglistdicts["whitehtsegments"][ifo]
triggerless_ifos = [ifo for ifo in self.instruments if ifo not in event_ifos and end_time in seglistdicts["whitehtsegments"][ifo]]
subthreshold_events = [] subthreshold_events = []
# FIXME Add logic to take highest network snr set of triggers when more than 1 sub-threshold trigger # FIXME Add logic to take highest network snr set of triggers when more than 1 sub-threshold trigger
for ifo in triggerless_ifos: for ifo in triggerless_ifos:
......
...@@ -1337,7 +1337,7 @@ class Handler(simplehandler.Handler): ...@@ -1337,7 +1337,7 @@ class Handler(simplehandler.Handler):
assert self.fapfar is not None assert self.fapfar is not None
# do alerts # do alerts
self.gracedbwrapper.do_alerts(last_coincs, self.psds, self.__get_rankingstat_xmldoc) self.gracedbwrapper.do_alerts(last_coincs, self.psds, self.__get_rankingstat_xmldoc, self.segmentstracker.seglistdicts)
def web_get_sngls_snr_threshold(self): def web_get_sngls_snr_threshold(self):
......
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