readback_value#
- class Quality(*values)[source]#
Bases:
EnumEnumeration for data quality indicators.
- ALARM = 3#
- CHANGING = 4#
- INVALID = 2#
- VALID = 1#
- WARNING = 5#
- class Value(value, quality=Quality.VALID, timestamp=None)[source]#
Bases:
objectRepresents a numerical value with associated quality and timestamp.
This class wraps a scalar or NumPy array and can be used in arithmetic operations and comparisons. It also retains metadata like quality and timestamp.
- Parameters:
value (float, int or numpy.ndarray) – The numerical value(s) to wrap.
quality (Quality, optional) – The quality of the value. Defaults to Quality.VALID.
timestamp (datetime, optional) – Timestamp associated with the value. Defaults to current time.