Commit 880581d3 authored by Brandon Piotrzkowski's avatar Brandon Piotrzkowski
Browse files

Use RAVEN_ALERT label to indicate RAVEN event passes threshold

parent fc47b115
...@@ -262,11 +262,10 @@ def compose_raven(gracedb_id, authors=(), ...@@ -262,11 +262,10 @@ def compose_raven(gracedb_id, authors=(),
combined_skymap_greedy_area=greedy_area) combined_skymap_greedy_area=greedy_area)
kwargs.update(main_dict(gracedb_id, client=client)) kwargs.update(main_dict(gracedb_id, client=client))
if (group.lower() == 'cbc' and superevent_far < 1 / (60 * 86400)) or \ if 'RAVEN_ALERT' in event['labels']:
(group.lower() == 'burst' and superevent_far < 1 / (365 * 86400)):
kwargs.update(change_significance_statement=False)
else:
kwargs.update(change_significance_statement=True) kwargs.update(change_significance_statement=True)
else:
kwargs.update(change_significance_statement=False)
subject = ( subject = (
env.get_template('RAVEN_subject.jinja2').render(**kwargs) env.get_template('RAVEN_subject.jinja2').render(**kwargs)
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
"E1234" "E1234"
], ],
"labels": [ "labels": [
"EM_COINC" "EM_COINC",
"RAVEN_ALERT"
], ],
"links": { "links": {
"files": "https://gracedb-dev1.ligo.org/api/superevents/S1234/files/", "files": "https://gracedb-dev1.ligo.org/api/superevents/S1234/files/",
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
"E5678" "E5678"
], ],
"labels": [ "labels": [
"EM_COINC" "EM_COINC",
"RAVEN_ALERT"
], ],
"links": { "links": {
"files": "https://gracedb-dev1.ligo.org/api/superevents/S5678/files/", "files": "https://gracedb-dev1.ligo.org/api/superevents/S5678/files/",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment