llama.poll.gracedb package

Poll GraceDB for new superevents that have been marked EM_READY and have had a GCN Notice VOEvent generated. Download and handle those GCN Notices. Runs as a script checking for new VOEvents when called from the command line.

llama.poll.gracedb.fetch_recent(rundir='/home/vagrant/.local/share/llama/current_run/')

Fetch and store recent superevents.

llama.poll.gracedb.get_skymap_name(superevent)

Get candidate skymap filenames for this superevent dictionary.

llama.poll.gracedb.gpsnow()

Get the current GPS time (rounded up to the nearest integer for GraceDB’s querying interface).

llama.poll.gracedb.gracedb_query(gps, lookback=200000)

Get a GraceDB-compatible query string for finding recent superevents that happened in the last lookback seconds before the GPS time gps.

llama.poll.gracedb.superevents()

Get a generator of superevents with skymaps that stops iterating once we’ve gone through all the events in the last LOOKBACK seconds.