Skip to content
Snippets Groups Projects
Commit 1f47fa4f authored by Cody Messick's avatar Cody Messick
Browse files

inspiral.py: Added raningstatpdf.is_healthy logic to gracedb alert

infrastructure
parent 9292fd38
No related branches found
No related tags found
No related merge requests found
......@@ -837,7 +837,8 @@ class Data(object):
# do GraceDB alerts
if self.gracedb_far_threshold is not None:
self.__do_gracedb_alerts()
if self.rankingstatpdf is not None and self.rankingstatpdf.is_healthy():
self.__do_gracedb_alerts()
self.__update_eye_candy()
# after doing alerts, no longer need per-trigger
......@@ -964,7 +965,7 @@ class Data(object):
self.zerolag_rankingstatpdf.zero_lag_lr_lnpdf.count[coinc_event.likelihood,] += 1
# do GraceDB alerts
if self.gracedb_far_threshold is not None:
if self.gracedb_far_threshold is not None and self.rankingstatpdf is not None and self.rankingstatpdf.is_healthy():
self.__do_gracedb_alerts()
# after doing alerts, no longer need per-trigger SNR data
......
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