Skip to content
Snippets Groups Projects
Commit 47f79f00 authored by David Hammer's avatar David Hammer
Browse files

Adding enum encoding AGIPD gain mode

parent de94a304
No related branches found
No related tags found
1 merge request!438Feat/agipd add fixed gain mode to dark notebook
from enum import Enum, IntFlag
from enum import Enum, IntEnum, IntFlag
class BadPixels(IntFlag):
......@@ -48,3 +48,12 @@ class SnowResolution(Enum):
"""
NONE = "none"
INTERPOLATE = "interpolate"
class AgipdGainMode(IntEnum):
"""Encoding added to distinguish between adaptive and fixed gain"""
ADAPTIVE_GAIN = 0 # adaptive is default (if gain mode missing in slow data)
FIXED_HIGH_GAIN = 1 # non-zero means fixed gain
FIXED_MEDIUM_GAIN = 2
FIXED_LOW_GAIN = 3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment