Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Leo Pound Singer
ligo-followup-advocate
Commits
da974a8e
Commit
da974a8e
authored
Mar 24, 2020
by
Brandon Piotrzkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug where grabbing combined sky map can return a .png
parent
520e523f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
CHANGES.md
CHANGES.md
+2
-1
ligo/followup_advocate/__init__.py
ligo/followup_advocate/__init__.py
+3
-1
ligo/followup_advocate/test/data/S5678/logs.json
ligo/followup_advocate/test/data/S5678/logs.json
+17
-5
No files found.
CHANGES.md
View file @
da974a8e
...
...
@@ -2,7 +2,8 @@
## 1.1.7 (unreleased)
-
No changes yet
-
Fix bug where grabbing a combined sky map can return a .png of
the same filename.
## 1.1.6 (2020-02-26)
...
...
ligo/followup_advocate/__init__.py
View file @
da974a8e
...
...
@@ -245,7 +245,9 @@ def compose_raven(gracedb_id, authors=(),
logs
=
client
.
logs
(
gracedb_id
).
json
()[
'log'
]
for
message
in
reversed
(
logs
):
filename
=
message
[
'filename'
]
if
'-ext.'
in
filename
:
if
'-ext.'
in
filename
and
(
filename
.
endswith
(
'fits.gz'
)
or
filename
.
endswith
(
'fits'
)
or
filename
.
endswith
(
'.fit'
)):
cl
=
90
include_ellipse
,
ra
,
dec
,
a
,
b
,
pa
,
area
,
greedy_area
=
\
uncertainty_ellipse
(
gracedb_id
,
filename
,
client
,
cl
=
cl
)
...
...
ligo/followup_advocate/test/data/S5678/logs.json
View file @
da974a8e
...
...
@@ -145,14 +145,26 @@
"N"
:
11
},
{
"comment"
:
"Combined LVC-Fermi sky map
using
bayestar.fits.gz"
,
"comment"
:
"Combined LVC-Fermi sky map bayestar.fits.gz"
,
"file_version"
:
0
,
"tag_names"
:
[
"sky_loc"
,
"public"
],
"file"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/bayestar-ext.fits.gz,0"
,
"created"
:
"2018-06-28 04:08:44 UTC"
,
"self"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/log/1
3
"
,
"self"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/log/1
2
"
,
"issuer"
:
"leo.singer@LIGO.ORG"
,
"filename"
:
"bayestar-ext.fits.gz"
,
"tags"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/log/12/tag/"
,
"N"
:
12
},
{
"comment"
:
"Combined LVC-Fermi sky map using bayestar.fits.gz"
,
"file_version"
:
0
,
"tag_names"
:
[
"sky_loc"
,
"public"
],
"file"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/bayestar-ext.png,0"
,
"created"
:
"2018-06-28 04:08:44 UTC"
,
"self"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/log/13"
,
"issuer"
:
"leo.singer@LIGO.ORG"
,
"filename"
:
"bayestar-ext.png"
,
"tags"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/log/13/tag/"
,
"N"
:
13
},
...
...
@@ -162,11 +174,11 @@
"tag_names"
:
[],
"file"
:
null
,
"created"
:
"2018-06-28 04:08:44 UTC"
,
"self"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/log/1
2
"
,
"self"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/log/1
4
"
,
"issuer"
:
"leo.singer@LIGO.ORG"
,
"filename"
:
""
,
"tags"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/log/1
2
/tag/"
,
"N"
:
1
2
"tags"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/log/1
4
/tag/"
,
"N"
:
1
4
}
],
"links"
:
{
...
...
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