Commit 3422b76b authored by Alexander Pace's avatar Alexander Pace

adding snr to neighbor's table, preferred event table, and g-event tooltips

parent bb4b0f83
Pipeline #148427 passed with stages
in 20 minutes and 51 seconds
......@@ -56,7 +56,7 @@ TEST_RUNNER = 'django.test.runner.DiscoverRunner'
# BrokenLinkEmailsMiddleware is enabled
ADMINS = [
("Alexander Pace", "alexander.pace@ligo.org"),
# ("Duncan Meacher", "duncan.meacher@ligo.org"),
("Duncan Meacher", "duncan.meacher@ligo.org"),
]
MANAGERS = ADMINS
......
......@@ -30,6 +30,7 @@
</th>
<th>&Delta;gpstime</th>
<th>FAR (Hz)</th>
<th>SNR</th>
<th>Links</th>
<th>
{{ "nsubmitted"|timeselect:"utc" }}
......@@ -81,6 +82,15 @@
&nbsp; &nbsp; &nbsp; &nbsp;
{% endif %}
</td>
<td data-title="SNR">
{% if object.coincinspiralevent %}
{{ object.coincinspiralevent.snr|floatformat:"3" }}
{% elif preferred_event.multiburstevent %}
{{ object.multiburstevent.snr|floatformat:"3" }}
{% else %}
&nbsp; &nbsp; &nbsp; &nbsp;
{% endif %}
</td>
<td data-title="Links"><a href="{{ object.weburl }}">Data</a></td>
<td data-title="Submitted">{{ object.created|multiTime:"nsubmitted" }}</td>
</tr>
......
......@@ -21,6 +21,7 @@
</th>
<th scope="col">FAR (Hz)</th>
<th scope="col">FAR (yr<sup>-1</sup>)</th>
<th scope="col">SNR</th>
<th scope="col">Links</th>
<th scope="col">
{{ "nsubmitted"|timeselect:"utc" }}
......@@ -53,6 +54,13 @@
</td>
<td data-title="FAR (Hz)">{% if far_is_upper_limit %} &lt; {% endif %}{{ display_far|scientific }}</td>
<td data-title="FAR (/year)">{% if far_is_upper_limit %} &lt; {% endif %}{{ display_far_hr }}</td>
<td data-title="SNR">
{% if preferred_event.coincinspiralevent %}
{{ preferred_event.coincinspiralevent.snr|floatformat:"3" }}
{% elif preferred_event.multiburstevent %}
{{ preferred_event.multiburstevent.snr|floatformat:"3" }}
{% endif %}
</td>
<td data-title="Links"><a href="{{ preferred_event.weburl }}">Data</a></td>
<td data-title="Submitted">{{ preferred_event.created|multiTime:"nsubmitted" }}</td>
</tr>
......
......@@ -54,7 +54,12 @@
data-html="true"
title="<b>{{ preferred_event.graceid }}</b><br>
<b>Pipeline:</b> {{ preferred_event.pipeline.name }}<br>
<b>FAR:</b> {{ preferred_event.far|scientific }}">{{ preferred_event.graceid }}</a></td>
<b>FAR:</b> {{ preferred_event.far|scientific }} <br>
<b>SNR:</b> {% if preferred_event.coincinspiralevent %}
{{ preferred_event.coincinspiralevent.snr|floatformat:"3" }}
{% elif preferred_event.multiburstevent %}
{{ preferred_event.multiburstevent.snr|floatformat:"3" }}
{% endif %}">{{ preferred_event.graceid }}</a></td>
<td data-title="GW Events">
<div>
{% for ev in internal_events %}
......@@ -64,7 +69,12 @@
data-html="true"
title="<b>{{ ev.graceid }}</b><br>
<b>Pipeline:</b> {{ ev.pipeline.name }}<br>
<b>FAR:</b> {{ ev.far|scientific }}">{{ ev.graceid }}</a>
<b>FAR:</b> {{ ev.far|scientific }}<br>
<b>SNR:</b> {% if ev.coincinspiralevent %}
{{ ev.coincinspiralevent.snr|floatformat:"3" }}
{% elif ev.multiburstevent %}
{{ ev.multiburstevent.snr|floatformat:"3" }}
{% endif %}">{{ ev.graceid }}</a>
{% endfor %}
</div>
</td>
......
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