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.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 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
10import logging
12logger = logging.getLogger(__name__)
15class TomoSampleStage(BlissObject, AbstractTomoSampleStage):
16 def _get_x_axis_focal_pos(self):
17 return self._object._x_axis_focal_pos
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 "x_axis_focal_pos": HardwareProperty(
29 "x_axis_focal_pos", getter=_get_x_axis_focal_pos
30 ),
31 "detector_center": HardwareProperty("detector_center"),
32 }
35Default = TomoSampleStage