EventValueMap
digraph inheritanceb6a39c8c12 {
bgcolor=transparent;
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"EventValueMap" [URL="#taurus.core.util.eventfilters.EventValueMap",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A filter destined to change the original value into another one"];
}
- 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