General Alert ( antares.model.alert.Alert )

class antares.model.alert.Alert(alert_id, ra, decl)

Bases: object

Represents a general alert. It is the super class of CameraAlert and ExternalAlert where a camera alert is generated by LSST and an external alert is from sources other than LSST.

Methods Summary

isPresent(context) Check if the context for the Alert is currently present.
isPresent(context)

Check if the context for the Alert is currently present.

Parameters:context (string) – name of the context. e.g. ‘CA’, ‘AR’, etc.
Returns:True if the context is currently present, otherwise False.