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

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 

9 

10import logging 

11 

12logger = logging.getLogger(__name__) 

13 

14 

15class Laserheating(BlissObject, AbstractLaserheating): 

16 def _get_state(self): 

17 return LaserheatingStates[0] 

18 

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 } 

26 

27 CALLABLE_MAP = {"measure": "measure"}