Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/abstract/tomosamplestage.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 sx = fields.Str(metadata={"readOnly": True}, allow_none=True) 

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

16 sz = fields.Str(metadata={"readOnly": True}) 

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

18 sampx = fields.Str(metadata={"readOnly": True}) 

19 sampy = fields.Str(metadata={"readOnly": True}) 

20 sampu = fields.Str(metadata={"readOnly": True}, allow_none=True) 

21 sampv = fields.Str(metadata={"readOnly": True}, allow_none=True) 

22 x_axis_focal_pos = fields.Number(allow_none=True, metadata={"readOnly": True}) 

23 detector_center = fields.List( 

24 fields.Number(allow_none=True), 

25 metadata={"readOnly": True}, 

26 required=True, 

27 ) 

28 

29 

30class _CallablesSchema(HardwareSchema): 

31 pass 

32 

33 

34class TomoSampleStage(HardwareObject): 

35 _type = "tomosamplestage" 

36 _properties = _PropertiesSchema() 

37 _callables = _CallablesSchema()