Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/abstract/tango_attr_as_counter.py: 0%
16 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-14 02:13 +0000
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3from marshmallow import fields
5from daiquiri.core.hardware.abstract import HardwareObject
6from daiquiri.core.schema.hardware import HardwareSchema
8import logging
10logger = logging.getLogger(__name__)
13class Tango_Attr_As_CounterPropertiesSchema(HardwareSchema):
14 name = fields.Str(metadata={"readOnly": True})
15 attribute = fields.Str(metadata={"readOnly": True})
16 value = fields.Float()
17 unit = fields.Str(metadata={"readOnly": True})
20class Tango_Attr_As_CounterCallablesSchema(HardwareSchema):
21 get_metadata = fields.Raw(required=True)
24class Tango_Attr_As_Counter(HardwareObject):
25 _type = "tango_attr_as_counter"
27 _properties = Tango_Attr_As_CounterPropertiesSchema()
28 _callables = Tango_Attr_As_CounterCallablesSchema()