Skip to content

enums

AgipdGainMode

Bases: IntEnum

Gain Modes where the values is 0 if Adaptive, or High/Medium/Low.

Source code in /usr/src/app/checkouts/readthedocs.org/user_builds/european-xfel-offline-calibration/envs/latest/lib/python3.8/site-packages/cal_tools/enums.py
class AgipdGainMode(IntEnum):
    """Gain Modes where the values is 0 if Adaptive, or High/Medium/Low."""

    ADAPTIVE_GAIN = 0
    FIXED_HIGH_GAIN = 1
    FIXED_MEDIUM_GAIN = 2
    FIXED_LOW_GAIN = 3

BadPixels

Bases: IntFlag

The European XFEL Bad Pixel Encoding

Source code in /usr/src/app/checkouts/readthedocs.org/user_builds/european-xfel-offline-calibration/envs/latest/lib/python3.8/site-packages/cal_tools/enums.py
class BadPixels(IntFlag):
    """ The European XFEL Bad Pixel Encoding
    """

    OFFSET_OUT_OF_THRESHOLD  = 1 << 0 # bit 1
    NOISE_OUT_OF_THRESHOLD   = 1 << 1 # bit 2
    OFFSET_NOISE_EVAL_ERROR  = 1 << 2 # bit 3
    NO_DARK_DATA             = 1 << 3 # bit 4
    CI_GAIN_OF_OF_THRESHOLD  = 1 << 4 # bit 5
    CI_LINEAR_DEVIATION      = 1 << 5 # bit 6
    CI_EVAL_ERROR            = 1 << 6 # bit 7
    FF_GAIN_EVAL_ERROR       = 1 << 7 # bit 8
    FF_GAIN_DEVIATION        = 1 << 8 # bit 9
    FF_NO_ENTRIES            = 1 << 9 # bit 10
    CI2_EVAL_ERROR           = 1 << 10 # bit 11
    VALUE_IS_NAN             = 1 << 11 # bit 12
    VALUE_OUT_OF_RANGE       = 1 << 12 # bit 13
    GAIN_THRESHOLDING_ERROR  = 1 << 13 # bit 14
    DATA_STD_IS_ZERO         = 1 << 14 # bit 15
    ASIC_STD_BELOW_NOISE     = 1 << 15 # bit 16
    INTERPOLATED             = 1 << 16 # bit 17
    NOISY_ADC                = 1 << 17 # bit 18
    OVERSCAN                 = 1 << 18 # bit 19
    NON_SENSITIVE            = 1 << 19 # bit 20
    NON_LIN_RESPONSE_REGION  = 1 << 20 # bit 21
    WRONG_GAIN_VALUE         = 1 << 21 # bit 22
    NON_STANDARD_SIZE        = 1 << 22 # bit 23

JungfrauGainMode

Bases: Enum

Jungfrau run gain mode.

Source code in /usr/src/app/checkouts/readthedocs.org/user_builds/european-xfel-offline-calibration/envs/latest/lib/python3.8/site-packages/cal_tools/enums.py
class JungfrauGainMode(Enum):
    """Jungfrau run gain mode."""
    DYNAMIC = "dynamic"
    FIX_GAIN_1 = "fixg1"
    FIX_GAIN_2 = "fixg2"
    FORCE_SWITCH_HG1 = "forceswitchg1"
    FORCE_SWITCH_HG2 = "forceswitchg2"

JungfrauSettings

Bases: Enum

Jungfrau run gain settings.

Source code in /usr/src/app/checkouts/readthedocs.org/user_builds/european-xfel-offline-calibration/envs/latest/lib/python3.8/site-packages/cal_tools/enums.py
class JungfrauSettings(Enum):
    """Jungfrau run gain settings."""
    GAIN_0 = "gain0"
    HIGH_GAIN_0 = "highgain0"

SnowResolution

Bases: Enum

An Enum specifying how to resolve snowy pixels

Source code in /usr/src/app/checkouts/readthedocs.org/user_builds/european-xfel-offline-calibration/envs/latest/lib/python3.8/site-packages/cal_tools/enums.py
class SnowResolution(Enum):
    """ An Enum specifying how to resolve snowy pixels
    """
    NONE = "none"
    INTERPOLATE = "interpolate"