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

11 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2025-02-06 02:13 +0000

1#!/usr/bin/env python 

2# -*- coding: utf-8 -*- 

3from daiquiri.core.hardware.abstract.tomosamplestage import ( 

4 TomoSampleStage as AbstractTomoSampleStage, 

5) 

6from daiquiri.core.hardware.bliss.object import BlissObject 

7from daiquiri.core.hardware.bliss.objectref import ObjectRefProperty 

8from daiquiri.core.hardware.abstract import HardwareProperty 

9 

10import logging 

11 

12logger = logging.getLogger(__name__) 

13 

14 

15class TomoSampleStage(BlissObject, AbstractTomoSampleStage): 

16 def _get_x_axis_focal_pos(self): 

17 return self._object._x_axis_focal_pos 

18 

19 PROPERTY_MAP = { 

20 "sx": ObjectRefProperty("x_axis", compose=True), 

21 "sy": ObjectRefProperty("y_axis", compose=True), 

22 "sz": ObjectRefProperty("z_axis", compose=True), 

23 "somega": ObjectRefProperty("rotation_axis", compose=True), 

24 "sampx": ObjectRefProperty("sample_x_axis", compose=True), 

25 "sampy": ObjectRefProperty("sample_y_axis", compose=True), 

26 "sampu": ObjectRefProperty("sample_u_axis", compose=True), 

27 "sampv": ObjectRefProperty("sample_v_axis", compose=True), 

28 "pusher": ObjectRefProperty("pusher", compose=True), 

29 "air_bearing_x": ObjectRefProperty("air_bearing_x", compose=True), 

30 "x_axis_focal_pos": HardwareProperty( 

31 "x_axis_focal_pos", getter=_get_x_axis_focal_pos 

32 ), 

33 "detector_center": HardwareProperty("detector_center"), 

34 } 

35 

36 

37Default = TomoSampleStage