Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/bliss/volpi.py: 0%

11 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.light import Light as AbstractLight, LightStates 

4from daiquiri.core.hardware.bliss.object import BlissObject 

5from daiquiri.core.hardware.abstract import HardwareProperty 

6 

7import logging 

8 

9logger = logging.getLogger(__name__) 

10 

11 

12class Volpi(BlissObject, AbstractLight): 

13 def _get_state(self): 

14 return LightStates[0] 

15 

16 def _get_temperature(self): 

17 return 0 

18 

19 PROPERTY_MAP = { 

20 "intensity": HardwareProperty("intensity"), 

21 "state": HardwareProperty("state", getter=_get_state), 

22 "temperature": HardwareProperty("temperature", getter=_get_temperature), 

23 }