gwcelery.tasks.gracedb module¶
Communication with GraceDB.
-
(task)
gwcelery.tasks.gracedb.
create_event
(filecontents, search, pipeline, group)[source]¶ Create an event in GraceDb.
-
(task)
gwcelery.tasks.gracedb.
create_signoff
(status, comment, signoff_type, graceid)[source]¶ Create a label in GraceDb.
-
(task)
gwcelery.tasks.gracedb.
create_voevent
(graceid, voevent_type, **kwargs)[source]¶ Create a VOEvent.
Returns: The filename of the new VOEvent. Return type: str
-
(task)
gwcelery.tasks.gracedb.
get_events
(query=None, orderby=None, count=None, columns=None)[source]¶ Get events from GraceDb.
-
(task)
gwcelery.tasks.gracedb.
get_log
(graceid)[source]¶ Get all log messages for an event in GraceDb.
-
(task)
gwcelery.tasks.gracedb.
get_number_of_instruments
(gracedb_id)[source]¶ Get the number of gravitational-wave instruments that contributed to the ranking statistic of a coincident event.
Parameters: gracedb_id (str) – The GraceDB ID. Returns: The number of instruments that contributed to the ranking statistic for the event. Return type: int Notes
The number of instruments that contributed data to an event is given by the
instruments
key of the GraceDB event JSON structure. However, some pipelines (e.g. gstlal) have a distinction between which instruments contributed data and which were considered in the ranking of the candidate. For such pipelines, we infer which pipelines contributed to the ranking by counting only the SingleInspiral records for which the chi squared field is non-empty.
-
(task)
gwcelery.tasks.gracedb.
upload
(filecontents, filename, graceid, message, tags=())[source]¶ Upload a file to GraceDB.
-
(task)
gwcelery.tasks.gracedb.
get_superevents
(query)[source]¶ List matching superevents in gracedb.
Parameters: query (str) – query to be passed to superevents()
Returns: superevents – The list of the superevents. Return type: list
-
(task)
gwcelery.tasks.gracedb.
update_superevent
(superevent_id, t_start=None, t_end=None, t_0=None, preferred_event=None)[source]¶ Update superevent information. Wrapper around
updateSuperevent()
Parameters: