Source code for mxcubecore.model.common

from datetime import datetime
from typing import Optional

from pydantic import (
    BaseModel,
    Field,
)


[docs]class CommonCollectionParamters(BaseModel): skip_existing_images: bool take_snapshots: int type: str label: str
[docs]class PathParameters(BaseModel): prefix: str subdir: str experiment_name: Optional[str] class Config: extra = "ignore"
[docs]class LegacyParameters(BaseModel): take_dark_current: int inverse_beam: bool num_passes: int offset: float class Config: extra = "ignore"
[docs]class StandardCollectionParameters(BaseModel): num_images: int osc_start: Optional[float] osc_range: Optional[float] energy: float transmission: float resolution: float first_image: int kappa: Optional[float] kappa_phi: Optional[float] beam_size: str shutterless: bool selection: list = Field([]) shape: str = "" class Config: extra = "ignore"
[docs]class BeamlineParameters(BaseModel): energy: float transmission: float resolution: float wavelength: float detector_distance: float beam_x: float beam_y: float beam_size_x: float beam_size_y: float beam_shape: str energy_bandwidth: float
[docs]class ISPYBCollectionParameters(BaseModel): flux_start: float flux_end: float start_time: datetime end_time: datetime chip_model: str mono_stripe: str number_of_rows: Optional[int] = 0 number_of_columns: Optional[int] = 0