gwcelery.tasks.first2years_external module¶
Create mock external events to be in coincidence with MDC superevents.
- gwcelery.tasks.first2years_external.IVORN_PIPELINE_DICT = {'Fermi': 'Fermi', 'SNEWS': 'SNEWS', 'SVOM': 'fsc', 'Swift': 'SWIFT'}¶
This dict maps from the pipeline name to the name listed in the IVORN.
- 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_freqorjoint_O3_replay_freq.For both testing internal MDC events on all instances and for all superevents uploaded to gracedb-playground.