snews_cs.alert_pub

An interface for SNEWS alert publisher

Created: August 2021 Authors: Melih Kara Sebastian Torres-Lara

Classes

AlertPublisher

Class to publish SNEWS SuperNova Alerts based on coincidence

Module Contents

class snews_cs.alert_pub.AlertPublisher(env_path=None, verbose=True, auth=True, firedrill_mode=True, is_test=False)[source]

Class to publish SNEWS SuperNova Alerts based on coincidence

auth = True[source]
broker[source]
verbose = True[source]
__enter__()[source]
__exit__(*args)[source]
send(message)[source]

This method will set the sent_time and send the message to the hop broker.

Parameters:

message (dict) – dict containing observation message.

display_message(message)[source]