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

1#!/usr/bin/env python 

2# -*- coding: utf-8 -*- 

3from marshmallow import fields 

4 

5from daiquiri.core.hardware.abstract import HardwareObject 

6from daiquiri.core.schema.hardware import HardwareSchema 

7 

8import logging 

9 

10logger = logging.getLogger(__name__) 

11 

12 

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}) 

18 

19 

20class Tango_Attr_As_CounterCallablesSchema(HardwareSchema): 

21 get_metadata = fields.Raw(required=True) 

22 

23 

24class Tango_Attr_As_Counter(HardwareObject): 

25 _type = "tango_attr_as_counter" 

26 

27 _properties = Tango_Attr_As_CounterPropertiesSchema() 

28 _callables = Tango_Attr_As_CounterCallablesSchema()