Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/bliss/tomoconfig.py: 0%
9 statements
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-15 02:12 +0000
« prev ^ index » next coverage.py v7.6.5, created at 2024-11-15 02:12 +0000
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3from daiquiri.core.hardware.abstract.tomoconfig import TomoConfig as AbstractTomoConfig
4from daiquiri.core.hardware.bliss.object import BlissObject
5from daiquiri.core.hardware.bliss.objectref import ObjectRefProperty
6from daiquiri.core.hardware.abstract import HardwareProperty
8import logging
10logger = logging.getLogger(__name__)
13class TomoConfig(BlissObject, AbstractTomoConfig):
14 PROPERTY_MAP = {
15 "sample_stage": ObjectRefProperty("sample_stage", compose=True),
16 "imaging": ObjectRefProperty("tomo_imaging", compose=True),
17 "sxbeam": ObjectRefProperty("tracked_x_axis", compose=True),
18 "detectors": ObjectRefProperty("detectors", compose=True),
19 "reference_position": ObjectRefProperty("reference_position", compose=True),
20 "energy": HardwareProperty("energy"),
21 "flat_motion": ObjectRefProperty("reference", compose=True),
22 "holotomo": ObjectRefProperty("holotomo", compose=True),
23 "latency_time": HardwareProperty("latency_time"),
24 }
27Default = TomoConfig