Coverage for /opt/conda/envs/apienv/lib/python3.10/site-packages/daiquiri/core/hardware/bliss/presetmanager.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.presetmanager import (
4 Presetmanager as AbstractPresetmanager,
5 PresetmanagerStates,
6)
7from daiquiri.core.hardware.bliss.object import BlissObject
8from daiquiri.core.hardware.abstract import HardwareProperty
10import logging
12logger = logging.getLogger(__name__)
15class Presetmanager(BlissObject, AbstractPresetmanager):
16 def _get_state(self):
17 return PresetmanagerStates[0]
19 PROPERTY_MAP = {
20 "presets": HardwareProperty("presets"),
21 "state": HardwareProperty("state", getter=_get_state),
22 }
24 CALLABLE_MAP = {"apply": "apply"}