EventValueMap

Inheritance diagram of EventValueMap
class EventValueMap[source]

A filter destined to change the original value into another one according to a given map. Example:

filter = EventValueMap({1:”OPEN”, 2:”CHANGING”, 3:”CLOSED”})

this will create a filter that changes the integer value of the event into a string. The event type is changed according to the python type in the map value.

For now it only supports simple types: str, int, long, float, bool

Import from taurus.core.util.eventfilters as:

from taurus.core.util.eventfilters import EventValueMap