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

12 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.procedure import Procedure as AbstractProcedure 

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

5from tomo.procedures.base_procedure import ProcedureState 

6from tomo.procedures.base_procedure import ProcedureExecusionState 

7from daiquiri.core.hardware.bliss.object import EnumProperty 

8from daiquiri.core.hardware.bliss.object import HardwareProperty 

9 

10import logging 

11 

12logger = logging.getLogger(__name__) 

13 

14 

15class Procedure(BlissObject, AbstractProcedure): 

16 PROPERTY_MAP = { 

17 "state": EnumProperty("state", enum_type=ProcedureState), 

18 "previous_run_state": EnumProperty( 

19 "previous_run_state", enum_type=ProcedureExecusionState 

20 ), 

21 "previous_run_exception": HardwareProperty("previous_run_exception"), 

22 "parameters": HardwareProperty("parameters"), 

23 } 

24 

25 CALLABLE_MAP = { 

26 "start": "start", 

27 "abort": "abort", 

28 "clear": "clear", 

29 "validate": "validate", 

30 } 

31 

32 

33Default = Procedure