gwcelery.tasks.gwskynet module

GWSkyNet annotation with GWSkyNet model

gwcelery.tasks.gwskynet.GWSkyNet_model()[source]
(task)gwcelery.tasks.gwskynet.gwskynet_annotation(input_list, SNRs, superevent_id)[source]

Perform the series of tasks necessary for GWSkyNet to

Parameters:
  • input_list (list) – The output of _download_and_keep_file_name that includes the downloaded the skymap and the versioned file name of the skymap. This list is in the form [skymap, skymap_filename].

  • snr (numpy array of floats) – detector SNRs.

  • superevent_id (str) – superevent uid

  • skymap_filename (str) – versioned filename for skymap

gwcelery.tasks.gwskynet.get_cbc_event_snr(event)[source]

Get detector SNRs from the LVAlert packet.

Parameters:

event (dict) – Event dictionary (e.g., the return value from gwcelery.tasks.gracedb.get_event(), or preferred_event_data in igwn-alert packet.)

Returns:

snr – detector SNRs.

Return type:

numpy array of floats

(task)gwcelery.tasks.gwskynet._download_and_return_file_name(filename, graceid)[source]

Wrapper around gracedb.download that returns the file name.

(task)gwcelery.tasks.gwskynet._unpack_gwskynet_annotation_and_upload(gwskynet_output, graceid)[source]

Proxy that evaluates object once.

Proxy will evaluate the object each time, while the promise will only evaluate it once.

(task)gwcelery.tasks.gwskynet.handle_cbc_superevent(alert)[source]

“Annotate the CBC preferred events of superevents using GWSkyNet