Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/bliss/tomoimaging.py: 0%
11 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.tomoimaging import (
4 TomoImaging as AbstractTomoImaging,
5)
6from daiquiri.core.hardware.abstract import HardwareProperty
7from daiquiri.core.hardware.bliss.object import BlissObject
8from daiquiri.core.hardware.bliss.object import EnumProperty
9from tomo.controllers.tomo_imaging import TomoImagingState
11import logging
13logger = logging.getLogger(__name__)
16class TomoImaging(BlissObject, AbstractTomoImaging):
17 PROPERTY_MAP = {
18 "state": EnumProperty("state", enum_type=TomoImagingState),
19 "update_on_move": HardwareProperty("update_on_move"),
20 "exposure_time": HardwareProperty("exposure_time"),
21 "settle_time": HardwareProperty("settle_time"),
22 }
24 CALLABLE_MAP = {
25 "take_proj": "take_proj",
26 "take_dark": "take_dark",
27 "take_flat": "take_flat",
28 }
31Default = TomoImaging