gwcelery.tasks.first2years_external module¶
Create mock external events to be in coincidence with MDC superevents.
- gwcelery.tasks.first2years_external.create_upload_external_event(gpstime, pipeline, ext_search)[source]¶
Create a random external event VOEvent or Kafka alert packet.
- Parameters:
- Returns:
event – Alert packet in format as if it was sent from GCN or Kafka, in a XML GCN notice alert packet in string format for the GRB or SubGRB search or a dictionary Kafka packet if for SubGRBTargeted search.
- Return type:
- (task)gwcelery.tasks.first2years_external.upload_external_event(alert, ext_search=None)[source]¶
Upload a random GRB event(s) for a certain fraction of MDC or O3-replay superevents.
Notes
Every n superevents, upload a GRB candidate within the standard CBC-GRB or Burst-GRB search window, where the frequency n is determined by the configuration variable
joint_mdc_freq
orjoint_O3_replay_freq
.For O3 replay testing with RAVEN pipeline, only runs on gracedb-playground.