Alert Replica ( antares.alert.AlertReplica )

class antares.alert.AlertReplica(parent, astro_id=None, init_from_db=False, replica_id=None, replica_num=None)

Bases: antares.alert.CameraAlert

Represents an alert replica. Beyond contexts available for CameraAlert, an alert replica is also associated with AO, AR, ES, LA, and PS context objects. Replica is initialized with its associated astro object (optional).

Param:parent(antares.alert.CameraAlert): The CameraAlert which contains the alert replica.
Param:astr_id(int): ID of the associated astro object (optional).
Param:init_from_db(boolean): indicate if the replica is initialized from Database (optional).
Param:replica_id(int): ID of the alert replica (unique among all replicas).
Param:replica_num(int): Number of the alert replica (unique among all replicas that share the same parent).

Attributes Summary

AR AR (Alert Replica) context object.
AO AO (Astro Object) context object that this AlertReplica has (optional).
ES ES (Extended Source) context object that this AlertReplica has (optional).
PS PS (Point Source) context object that this AlertReplica has (optional).
camera_alert This is the CameraAlert which contains this AlertReplica.

Methods Summary

divert(annotation) Divert the alert replica.
mark_as_rare(annotation) Mark the alert as a rare alert.

Attributes Documentation

AR = None

AR (Alert Replica) context object. The Alert Replica contains the ARContext. AR propibutes are only accessible during per-replica processing.

Type:antares.context.ARContext
AO = None

AO (Astro Object) context object that this AlertReplica has (optional). AO propibutes are available if AR.HasAstroObject = True.

Type:antares.context.AOContext
ES = None

ES (Extended Source) context object that this AlertReplica has (optional). ES propibutes are available only if AO.kind = "extended source".

Type:antares.context.ESContext
PS = None

PS (Point Source) context object that this AlertReplica has (optional). PS propibutes are available only if AO.kind = "point source".

Type:antares.context.PSContext
camera_alert = None

This is the CameraAlert which contains this AlertReplica.

Type:CameraAlert

Methods Documentation

divert(annotation)

Divert the alert replica.

Parameters:annotation (string) – a short description of why the alert replica is diverted.
mark_as_rare(annotation)

Mark the alert as a rare alert.

Parameters:annotation (string) – a short description of why the alert is rare.