gwcelery.tasks.gwskynet module¶
GWSkyNet annotation with GWSkyNet model
- (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()
, orpreferred_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.