Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/abstract/transmission.py: 0%

15 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 TransmissionPropertiesSchema(HardwareSchema): 

14 datafile = fields.Str(metadata={"readOnly": True}) 

15 transmission_factor = fields.Str(metadata={"readOnly": True}) 

16 

17 

18class TransmissionCallablesSchema(HardwareSchema): 

19 set = fields.Float() 

20 get = fields.Float() 

21 

22 

23class Transmission(HardwareObject): 

24 _type = "transmission" 

25 

26 _properties = TransmissionPropertiesSchema() 

27 _callables = TransmissionCallablesSchema()