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

24 statements  

« prev     ^ index     » next       coverage.py v7.7.1, created at 2025-03-29 02:12 +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 pusher = fields.Str(metadata={"readOnly": True}, allow_none=True) 

23 air_bearing_x = fields.Str(metadata={"readOnly": True}, allow_none=True) 

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

25 detector_center = fields.List( 

26 fields.Number(allow_none=True), 

27 metadata={"readOnly": True}, 

28 required=True, 

29 ) 

30 

31 

32class _CallablesSchema(HardwareSchema): 

33 pass 

34 

35 

36class TomoSampleStage(HardwareObject): 

37 _type = "tomosamplestage" 

38 _properties = _PropertiesSchema() 

39 _callables = _CallablesSchema()