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