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

22 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 _PropertiesSchema(HardwareSchema): 

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

15 sample_stage = fields.Str(metadata={"readOnly": True}, allow_none=False) 

16 sxbeam = fields.Str(metadata={"readOnly": True}, allow_none=True) 

17 detectors = fields.Str(metadata={"readOnly": True}) 

18 reference_position = fields.Str(metadata={"readOnly": True}, allow_none=True) 

19 energy = fields.Float() 

20 flat_motion = fields.Str(metadata={"readOnly": True}) 

21 holotomo = fields.Str(metadata={"readOnly": True}) 

22 latency_time = fields.Float() 

23 flat_motion = fields.Str(metadata={"readOnly": True}) 

24 

25 

26class _CallablesSchema(HardwareSchema): 

27 pass 

28 

29 

30class TomoConfig(HardwareObject): 

31 _type = "tomoconfig" 

32 _properties = _PropertiesSchema() 

33 _callables = _CallablesSchema()