Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/abstract/tomodetectors.py: 0%
17 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 _PropertiesSchema(HardwareSchema):
14 state = fields.Str(metadata={"readOnly": True})
15 detectors = fields.List(fields.Str(), metadata={"readOnly": True})
16 active_detector = fields.Str(metadata={"readOnly": True})
19class _CallablesSchema(HardwareSchema):
20 mount = fields.Str()
23class TomoDetectors(HardwareObject):
24 _type = "tomodetectors"
25 _properties = _PropertiesSchema()
26 _callables = _CallablesSchema()
28 def mount(self, value):
29 self.call("mount", value)