Camera Alert ( antares.model.alert.CameraAlert )¶
-
class
antares.model.alert.CameraAlert(alert_id, ra, decl, CA, decision, locus_id, IM=None, IR=None, IS=None)¶ Bases:
antares.model.alert.AlertRepresents a camera alert which is a sub-class of
Alert. A camera alert is associated with CA, IM, IR, IS and LA context objects. and is initialized with these 5 available contexts.Param: antares.context.CAContextCA: CA context objectParam: antares.context.IMContextIM: IM context objectParam: antares.context.IRContextIR: IR context objectParam: antares.context.ISContextIS: IS context objectParam: antares.context.LAContextLA: LA context objectAttributes Summary
CACA (Camera Alert) context object. LALA (Locus-aggregated Alert) context object. IMIM (Image) context object. IRIR (Image RAFT) context object. ISIS (Image Section) context object. replicasA list of the alert replicas created by camera alert. annotationAnnotation of the camera alert. Methods Summary
createReplica([astro_id])Create an alert replica which is associated with an optional astro object id astro_id.createCombo(replicas)Create an alert combo object which contains a set of alert replicas. throttle(annotation)Throttle the alert. divert(annotation)Divert the alert. mark_as_rare(annotation)Mark the alert as a rare alert. hasReplicas()Check whether alert has replicas. associatedAstroObjs()loadReplicas()Load replicas from database. commit()Commit the alert data to Locus-aggregated Alerts DB. __str__()Attributes Documentation
-
CA= None¶ CA (Camera Alert) context object. CA properties are always available.
Type: antares.context.CAContext
-
LA= None¶ LA (Locus-aggregated Alert) context object. LA properties are always available.
Type: antares.context.LAContext
-
IM= None¶ IM (Image) context object.
Type: antares.context.IMContext
-
IR= None¶ IR (Image RAFT) context object.
Type: antares.context.IRContext
-
IS= None¶ IS (Image Section) context object.
Type: antares.context.ISContext
-
replicas= None¶ A list of the alert replicas created by camera alert.
Type: list
-
annotation¶ Annotation of the camera alert.
Type: string
Methods Documentation
-
createReplica(astro_id=None)¶ Create an alert replica which is associated with an optional astro object id
astro_id.Param: intastro_id: ID of the astro object to be associated with the created replica. It is optional.
-
createCombo(replicas)¶ Create an alert combo object which contains a set of alert replicas.
Parameters: replicas (list) – a list of alert replicas
-
throttle(annotation)¶ Throttle the alert.
Parameters: annotation (string) – a short description of why the alert is throttled.
-
divert(annotation)¶ Divert the alert.
Parameters: annotation (string) – a short description of why the alert 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.
-
hasReplicas()¶ Check whether alert has replicas.
Returns: Trueif alert has replicas, otherwiseFalse.
-
associatedAstroObjs()¶
-
loadReplicas()¶ Load replicas from database.
-
commit()¶ Commit the alert data to Locus-aggregated Alerts DB.
-
__str__()¶
-