Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/bliss/attenuator_wago.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 import HardwareProperty
4from daiquiri.core.hardware.abstract.attenuator import (
5 Attenuator as AbstractAttenuator,
6 AttenuatorStates,
7)
8from daiquiri.core.hardware.bliss.object import BlissObject
11class Attenuator_Wago(BlissObject, AbstractAttenuator):
12 def _get_state(self):
13 return AttenuatorStates[0]
15 def _get_factor(self):
16 return self._object.factor()
18 def _get_thickness(self):
19 return self._object.thickness()
21 PROPERTY_MAP = {
22 "state": HardwareProperty("state", getter=_get_state),
23 "factor": HardwareProperty("factor", getter=_get_factor),
24 "thickness": HardwareProperty("thickness", getter=_get_thickness),
25 }