Commit 5981ecb6 authored by Alexander Pace's avatar Alexander Pace

Add support for Swift GRB FAR

In support of: !32

Ingests a 'FAR' field in Hz and adds it to the event data model. If
the field is present, then show it in the GRB event table on the
detail page.
parent 25fdb7bb
Pipeline #102274 passed with stages
in 16 minutes and 57 seconds
......@@ -33,6 +33,7 @@ RUN apt-get update && \
supervisor \
libssl-dev \
swig \
htop \
vim && \
apt-get clean && \
npm install -g bower
......
......@@ -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()
......@@ -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 %}
......
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