Commit 2cb0c924 authored by Maximilian Schuette's avatar Maximilian Schuette 🌃
Browse files

Some improvements for python DAQ Timing Pattern

parent 1c693a53
# Based on information from https://confluence.desy.de/display/MCS/Timing+Pattern+for+DOOCS+Servers
from collections.abc import Sequence
from enum import Enum, IntFlag, unique
from enum import Enum, IntEnum, IntFlag, unique
import numpy as np
from ctypes import LittleEndianStructure, c_float, c_uint8, c_uint16, POINTER, cast
......@@ -9,7 +9,7 @@ LINACS = ('xfel', 'flash')
@unique
class BunchChargeSetting(Enum):
class BunchChargeSetting(IntEnum):
NO_BUNCH = 0
pC_20 = 1
pC_30 = 2
......@@ -29,7 +29,7 @@ class BunchChargeSetting(Enum):
@unique
class DestinationXfel(Enum):
class DestinationXfel(IntEnum):
NONE = 0
LASER_STAND_ALONE = 1
T5D = 2
......@@ -42,7 +42,7 @@ class DestinationXfel(Enum):
@unique
class DestinationFlash(Enum):
class DestinationFlash(IntEnum):
NONE = 0
FLASH2 = 2
FLASH1 = 4
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment