Files
Jungfraujoch/python-client/jfjoch_client/models/detector_power_state.py
2024-10-23 19:03:09 +02:00

40 lines
992 B
Python

# coding: utf-8
"""
Jungfraujoch
API to control Jungfraujoch developed by the Paul Scherrer Institute (Switzerland). Jungfraujoch is a data acquisition and analysis system for pixel array detectors, primarly PSI JUNGFRAU. Jungfraujoch uses FPGA boards to acquire data at high data rates.
The version of the OpenAPI document: 1.0.0-rc.23
Contact: filip.leonarski@psi.ch
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self
class DetectorPowerState(str, Enum):
"""
Power on of ASICs
"""
"""
allowed enum values
"""
POWERON = 'PowerOn'
POWEROFF = 'PowerOff'
PARTIAL = 'Partial'
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of DetectorPowerState from a JSON string"""
return cls(json.loads(json_str))