Files
AareDAQ/src/aare/beamline_dispatch/protocols.py
T
perl_d db046d9893
CI / lint (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / lint (pull_request) Failing after 39s
CI / test (3.12) (pull_request) Successful in 1m4s
CI / test (3.13) (pull_request) Successful in 1m0s
CI / test (3.14) (pull_request) Successful in 1m4s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 1m9s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 1m18s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m17s
CI / test-with-coverage (pull_request) Successful in 1m33s
CI / coverage-analysis (pull_request) Failing after 4s
fix: new import locations and types for bec macros
2026-08-25 18:03:31 +02:00

52 lines
1.2 KiB
Python

from abc import ABC, abstractmethod
from typing import Any
from aarecommon.math.beam_center import BeamCenterFromDetectorStage
class AuthDispatch(ABC):
@abstractmethod
def get_jwt_key(self) -> str: ...
class BecMacros(ABC):
@staticmethod
@abstractmethod
def save_and_reload() -> tuple[Any, Any]: ...
@staticmethod
@abstractmethod
def save_current_position(device, position, axis=None, force=False, max_delta=0.5) -> None: ...
@staticmethod
@abstractmethod
def init_beamline_environment() -> tuple[Any, Any, Any]: ...
@staticmethod
@abstractmethod
def bl_energy(energy_ev, move_gap=True, mono_scan=True, plot=True): ...
@staticmethod
@abstractmethod
def get_current_energy(): ...
@staticmethod
@abstractmethod
def mono_pitch_scan(plot=True): ...
@staticmethod
@abstractmethod
def auto_exposure(): ...
class Geometry(ABC):
@property
@abstractmethod
def beam_centre_model(self) -> BeamCenterFromDetectorStage: ...
class BeamlineDispatch(ABC):
@property
@abstractmethod
def auth(self) -> AuthDispatch: ...
@property
@abstractmethod
def bec_macros(self) -> BecMacros: ...
@property
@abstractmethod
def geo(self) -> Geometry: ...