MDEL and ADEL as float in policy
Brought to you by:
slac-mshankar
I see that the policy callback is receiving a dictionary like:
{u'ADEL': u'0.003', u'aliasName': u'LN-RF{KLY:2}Pwr:Fwd-I', u'RTYP': u'ai', u'elementCount': 1, u'eventRate': 0.9833333333333333, u'MDEL': u'0.001', u'policyName': u'fast', u'SCAN': u'9.0', u'pvName': u'LN-RF{KLY:2}Pwr:Fwd-I', u'storageRate': 19.5, u'dbrtype': u'DBR_SCALAR_DOUBLE'}
Which includes MDEL and ADEL as strings. It would be more useful if these were floats. Also, SCAN (whatever this is).
ADEL and MDEL now come in as floats. Also send the label for SCAN.
{u'ADEL': 0.0, u'aliasName': u'mshankar:arch:cosine2:cnt', u'RTYP': u'calcout', u'elementCount': 1, u'eventRate': 1.0, u'MDEL': 0.0, u'SCAN': u'1 second', u'pvName': u'mshankar:arch:cosine2:cnt', u'storageRate': 20.083333333333332, u'dbrtype': u'DBR_SCALAR_DOUBLE'}