diff --git a/gracedb/events/translator.py b/gracedb/events/translator.py index 7aa442be7e56c46f0e4f720fbf8c5a8fdebe8ac9..521ddecfc4c460c95a9ea07d5ad36e4488469791 100644 --- a/gracedb/events/translator.py +++ b/gracedb/events/translator.py @@ -646,5 +646,12 @@ def populateGrbEventFromVOEventFile(filename, event): break event.trigger_id = trigger_id + # Check for the existance of FAR in the VOEvent_params. if it exists, + # Then add it to the event. This change was made on 2/7/2020 in support + # of SWIFT event uploads. Note: FAR is in Hz. + + if ('FAR' in VOEvent_params): + event.far = float(VOEvent_params.get('FAR').get('value')) + # Save event event.save() diff --git a/gracedb/templates/gracedb/event_detail_GRB.html b/gracedb/templates/gracedb/event_detail_GRB.html index 29f3aba0b3310e75bb31d7192350a2ca162af768..11ced3472a77226860525a1b807a3bcc52649e2c 100644 --- a/gracedb/templates/gracedb/event_detail_GRB.html +++ b/gracedb/templates/gracedb/event_detail_GRB.html @@ -74,6 +74,9 @@ {% if object.trigger_duration %} <tr><th>Trigger duration</th><td colspan="2">{{object.trigger_duration}}</td></tr> {% endif %} + {% if object.far %} + <tr><th>FAR (Hz)</th><td colspan="2">{{object.far}}</td></tr> + {% endif %} {% if object.t90 %} <tr><th>T90</th><td colspan="2">{{object.t90}}</td></tr> {% endif %}