Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
gracedb
Commits
05e210f8
Commit
05e210f8
authored
May 30, 2019
by
Jonah Kanner
🤓
Committed by
GraceDB
Jun 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added pe column
parent
bda07cf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
+22
-9
gracedb/superevents/views.py
gracedb/superevents/views.py
+9
-0
gracedb/templates/superevents/public.html
gracedb/templates/superevents/public.html
+13
-9
No files found.
gracedb/superevents/views.py
View file @
05e210f8
...
...
@@ -207,6 +207,7 @@ class SupereventPublic2(ListView):
gcnurl_template
=
'https://gcn.gsfc.nasa.gov/other/GW{sd_id}.gcn3'
skymap_filename
=
'bayestar.png'
def
get_queryset
(
self
,
**
kwargs
):
# -- Query only for public events
# Comment from Tanner: Use the category directly from the superevent
...
...
@@ -273,6 +274,14 @@ class SupereventPublic2(ListView):
'comment'
,
flat
=
True
)))
if
se
.
retract
:
se
.
comments
+=
" ** RETRACTED ** "
# -- Get list of PE results
pe_results
=
get_objects_for_user
(
self
.
request
.
user
,
self
.
log_view_permission
,
klass
=
se
.
log_set
.
filter
(
tags__name
=
'pe_result'
))
# Compile comments from these logs
se
.
pe
=
' ** '
.
join
(
list
(
pe_results
.
values_list
(
'comment'
,
flat
=
True
)))
# -- Read out probabilities
pastro_values
=
[
(
"BNS"
,
voe
.
prob_bns
),
(
"NSBH"
,
voe
.
prob_nsbh
),
(
"BBH"
,
voe
.
prob_bbh
),
(
"Terrestrial"
,
voe
.
prob_terrestrial
),
...
...
gracedb/templates/superevents/public.html
View file @
05e210f8
...
...
@@ -31,7 +31,6 @@
<br/><br/>
<table
class=
"tablesaw"
data-tablesaw-sortable
data-tablesaw-sortable-switch
data-tablesaw-mode=
"columntoggle"
>
<thead><tr>
<th
scope=
"col"
data-tablesaw-sortable-col
data-tablesaw-priority=
"persist"
>
Event ID
</th>
...
...
@@ -44,11 +43,16 @@
<th
scope=
"col"
data-tablesaw-col
data-tablesaw-priority=
"5"
>
Ω
Scan
</th>
{% endif %}
<th
scope=
"col"
data-tablesaw-sortable-col
data-tablesaw-priority=
"6"
>
Comments
</th>
<th
scope=
"col"
data-tablesaw-sortable-col
data-tablesaw-priority=
"4"
>
Comments
</th>
<th
scope=
"col"
data-tablesaw-sortable-col
data-tablesaw-priority=
"0"
>
GPS
</th>
<th
scope=
"col"
data-tablesaw-col
data-tablesaw-priority=
"0"
>
False Alarm Rate (per year)
</th>
<!-- <th scope="col" data-tablesaw-sortable-col data-tablesaw-priority="0">UTC Time</th> -->
<th
scope=
"col"
data-tablesaw-sortable-col
data-tablesaw-priority=
"0"
>
False Alarm Rate (per year)
</th>
<th
scope=
"col"
data-tablesaw-col
data-tablesaw-priority=
"0"
>
VOEvent
</th>
{% if not user_is_external %}
<th
scope=
"col"
data-tablesaw-col
data-tablesaw-priority=
"0"
>
PE
</th>
{% endif %}
</tr>
</thead>
<tbody>
...
...
@@ -80,12 +84,12 @@
</td>
{% endif %}
<td>
{{ event.comments }}
</td>
<td>
{{ event.comments |safe}}
</td>
<td>
{{ event.t_0|floatformat:2 }}
</td>
<td>
1 per {{ event.ifar_yrs|floatformat:2 }} years
</td>
<!-- <td>{{ event.t0_iso }} UTC</td> -->
<td>
<a
href=
'/api/superevents/{{ event.default_superevent_id }}/voevents/'
>
VOEvent
</a></td>
{% if not user_is_external %}
<td>
{{ event.pe |safe}}
</td>
{% endif %}
</tr>
{% endfor %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment