snews_cs.alert_pub

An interface for SNEWS alert publisher

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

Module Contents

Classes

AlertPublisher

Class to publish SNEWS SuperNova Alerts based on coincidence

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

Class to publish SNEWS SuperNova Alerts based on coincidence

__enter__(self)[source]
__exit__(self, *args)[source]
send(self, message)[source]

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

Parameters

messages (list) – list containing observation message.

display_message(self, message)[source]