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
fc47b115
Commit
fc47b115
authored
Feb 21, 2020
by
Brandon Piotrzkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grab combined sky maps with ext in filename
parent
a7743cd5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
9 deletions
+7
-9
ligo/followup_advocate/__init__.py
ligo/followup_advocate/__init__.py
+1
-3
ligo/followup_advocate/test/data/S1234/files.json
ligo/followup_advocate/test/data/S1234/files.json
+1
-1
ligo/followup_advocate/test/data/S1234/files/bayestar-ext.fits.gz
...lowup_advocate/test/data/S1234/files/bayestar-ext.fits.gz
+0
-0
ligo/followup_advocate/test/data/S1234/logs.json
ligo/followup_advocate/test/data/S1234/logs.json
+2
-2
ligo/followup_advocate/test/data/S5678/files.json
ligo/followup_advocate/test/data/S5678/files.json
+1
-1
ligo/followup_advocate/test/data/S5678/files/bayestar-ext.fits.gz
...lowup_advocate/test/data/S5678/files/bayestar-ext.fits.gz
+0
-0
ligo/followup_advocate/test/data/S5678/logs.json
ligo/followup_advocate/test/data/S5678/logs.json
+2
-2
No files found.
ligo/followup_advocate/__init__.py
View file @
fc47b115
...
...
@@ -244,10 +244,8 @@ def compose_raven(gracedb_id, authors=(),
# Find combined sky map for GRB
logs
=
client
.
logs
(
gracedb_id
).
json
()[
'log'
]
for
message
in
reversed
(
logs
):
comment
=
message
[
'comment'
]
filename
=
message
[
'filename'
]
if
(
filename
.
endswith
(
'-gbm.fits.gz'
)
or
'LVC-Fermi sky map'
in
comment
):
if
'-ext.'
in
filename
:
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/S1234/files.json
View file @
fc47b115
...
...
@@ -15,7 +15,7 @@
"S1234-1-Initial.xml"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/S1234-1-Initial.xml"
,
"S1234-2-Update.xml"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/S1234-2-Update.xml"
,
"coincidence_far.json"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/coincidence_far.json"
,
"bayestar-
gbm
.fits.gz"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/bayestar-
gbm
.fits.gz"
,
"bayestar-
ext
.fits.gz"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/bayestar-
ext
.fits.gz"
,
"p_astro.json"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/p_astro.json"
,
"em_bright.json"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/em_bright.json"
}
ligo/followup_advocate/test/data/S1234/files/bayestar-
gbm
.fits.gz
→
ligo/followup_advocate/test/data/S1234/files/bayestar-
ext
.fits.gz
View file @
fc47b115
File moved
ligo/followup_advocate/test/data/S1234/logs.json
View file @
fc47b115
...
...
@@ -159,11 +159,11 @@
"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-
gbm
.fits.gz,0"
,
"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/13"
,
"issuer"
:
"leo.singer@LIGO.ORG"
,
"filename"
:
"bayestar-
gbm
.fits.gz"
,
"filename"
:
"bayestar-
ext
.fits.gz"
,
"tags"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/log/13/tag/"
,
"N"
:
13
},
...
...
ligo/followup_advocate/test/data/S5678/files.json
View file @
fc47b115
...
...
@@ -14,7 +14,7 @@
"S5678-1-Initial.xml"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/files/S5678-1-Initial.xml"
,
"S5678-2-Update.xml"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/files/S5678-2-Update.xml"
,
"coincidence_far.json"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/files/coincidence_far.json"
,
"bayestar-
gbm
.fits.gz"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/bayestar-
gbm
.fits.gz"
,
"bayestar-
ext
.fits.gz"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/files/bayestar-
ext
.fits.gz"
,
"p_astro.json"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/files/p_astro.json"
,
"em_bright.json"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/files/em_bright.json"
,
"p_astro.json,0"
:
"https://gracedb-dev1.ligo.org/api/events/S5678/files/p_astro.json,0"
,
...
...
ligo/followup_advocate/test/data/S5678/files/bayestar-
gbm
.fits.gz
→
ligo/followup_advocate/test/data/S5678/files/bayestar-
ext
.fits.gz
View file @
fc47b115
File moved
ligo/followup_advocate/test/data/S5678/logs.json
View file @
fc47b115
...
...
@@ -148,11 +148,11 @@
"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-
gbm
.fits.gz,0"
,
"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/13"
,
"issuer"
:
"leo.singer@LIGO.ORG"
,
"filename"
:
"bayestar-
gbm
.fits.gz"
,
"filename"
:
"bayestar-
ext
.fits.gz"
,
"tags"
:
"https://gracedb-dev1.ligo.org/api/events/S1234/log/13/tag/"
,
"N"
:
13
},
...
...
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