Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/bliss/laserheating.py: 0%
10 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.laserheating import (
4 Laserheating as AbstractLaserheating,
5 LaserheatingStates,
6)
7from daiquiri.core.hardware.bliss.object import BlissObject
8from daiquiri.core.hardware.abstract import HardwareProperty
10import logging
12logger = logging.getLogger(__name__)
15class Laserheating(BlissObject, AbstractLaserheating):
16 def _get_state(self):
17 return LaserheatingStates[0]
19 PROPERTY_MAP = {
20 "state": HardwareProperty("state", getter=_get_state),
21 "exposure_time": HardwareProperty("exposure_time"),
22 "background_mode": HardwareProperty("background_mode"),
23 "fit_wavelength": HardwareProperty("fit_wavelength"),
24 "current_calibration": HardwareProperty("current_calibration"),
25 }
27 CALLABLE_MAP = {"measure": "measure"}