Skip to content
Snippets Groups Projects

gstlal_ll_inspiral_event_plotter: add a separate job to the DAG for plotting injection events

Merged Rebecca Ewing requested to merge event-plotter into master
Files
4
@@ -94,6 +94,8 @@ def parse_command_line():
parser.add_option('--processing-cadence', type = 'float', default = 0.1, help = 'Rate at which the event plotter acquires and processes data. Default = 0.1 seconds.')
parser.add_option('--request-timeout', type = 'float', default = 0.2, help = 'Timeout for requesting messages from a topic. Default = 0.2 seconds.')
parser.add_option('--kafka-server', metavar = 'string', help = 'Sets the server url that the kafka topic is hosted on. Required.')
parser.add_option("--upload-topic", metavar = "string", help = "Sets the input kafka topic to get uploaded event info from. Required.")
parser.add_option("--ranking-stat-topic", metavar = "string", help = "Sets the input kafka topic to get ranking stat info from. Required.")
parser.add_option('--gracedb-group', metavar = 'name', default = 'Test', help = 'Gracedb group to which to upload events (default is Test).')
parser.add_option('--gracedb-pipeline', metavar = 'name', default = 'gstlal', help = 'Name of pipeline to provide in GracedB uploads (default is gstlal).')
parser.add_option('--gracedb-search', metavar = 'name', default = 'LowMass', help = 'Name of search to provide in GracedB uploads (default is LowMass).')
@@ -123,8 +125,8 @@ class EventPlotter(events.EventProcessor):
def __init__(self, options):
logging.info('setting up event plotter...')
self.upload_topic = f'gstlal.{options.tag}.uploads'
self.ranking_stat_topic = f'gstlal.{options.tag}.ranking_stat'
self.upload_topic = f'gstlal.{options.tag}.{options.upload_topic}'
self.ranking_stat_topic = f'gstlal.{options.tag}.{options.ranking_stat_topic}'
events.EventProcessor.__init__(
self,
process_cadence=options.processing_cadence,
Loading