Commit fc47b115 authored by Brandon Piotrzkowski's avatar Brandon Piotrzkowski

Grab combined sky maps with ext in filename

parent a7743cd5
......@@ -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)
......
......@@ -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"
}
......@@ -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
},
......
......@@ -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",
......
......@@ -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
},
......
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