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
« 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 TransmissionPropertiesSchema(HardwareSchema):
14 datafile = fields.Str(metadata={"readOnly": True})
15 transmission_factor = fields.Str(metadata={"readOnly": True})
18class TransmissionCallablesSchema(HardwareSchema):
19 set = fields.Float()
20 get = fields.Float()
23class Transmission(HardwareObject):
24 _type = "transmission"
26 _properties = TransmissionPropertiesSchema()
27 _callables = TransmissionCallablesSchema()