LA Context ( antares.model.context.LAContext )

Antares context module.

class antares.model.context.LAContext(container_id)

Bases: antares.model.context.Context

Represents a LA (Locus-aggregated Alert) context object which is a sub-class of Context. It contains all the properties defined under LA context.

Param:container_id(int): ID of the object that owns the context.

Attributes Summary

name Name of LA context.

Methods Summary

assembleTimeSeries_replicas(context, propname) The function assembles a time series of all the past values of an Property inside a context of the alert replicas associated with a locus aggregated alert.
assembleTimeSeries_cameraAlerts(context, …) The function assembles a time series of all the past values of an Property inside a context of the camera alerts associated with a locus aggregated alert.
addProperty(propname, value[, computed_time])
assembleProperties(propname, alert)
setScalar(propname, value)
getScalar(propname)

Attributes Documentation

name = 'LA'

Name of LA context.

Type:string

Methods Documentation

assembleTimeSeries_replicas(context, propname)

The function assembles a time series of all the past values of an Property inside a context of the alert replicas associated with a locus aggregated alert.

Parameters:
  • context (string) – the name of the context
  • propname (string) – the name of the Property
Returns:

a time series of values. Here the value is a dict that maps replica ID to the real value of propname.

Return type:

pandas.Series

assembleTimeSeries_cameraAlerts(context, propname, passband=None)

The function assembles a time series of all the past values of an Property inside a context of the camera alerts associated with a locus aggregated alert.

Parameters:
  • context (string) – the name of the context
  • propname (string) – the name of the Property
Returns:

a time series of values

Return type:

an array of three element tuple: (time, value, annotation)

addProperty(propname, value, computed_time=1509505028.1933548)
assembleProperties(propname, alert)
setScalar(propname, value)
getScalar(propname)