mxcubeweb.core.adapter.detector_adapter#
Classes
|
|
|
- class mxcubeweb.core.adapter.detector_adapter.DetectorAdapter(ho, role, app)[source]#
Bases:
AdapterBase- display_image(params: DisplayImageParams) dict[source]#
Notify ADXV and/or Braggy of the image to display.
- Parameters:
params (DisplayImageParams) –
- Return type:
- class mxcubeweb.core.adapter.detector_adapter.DisplayImageParams(*, path: Path, img_num: int)[source]#
Bases:
BaseModel- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_fields: ClassVar[dict[str, FieldInfo]] = {'img_num': FieldInfo(annotation=int, required=True, description='Index of the image to display'), 'path': FieldInfo(annotation=Path, required=True, description="Path to images' masterfile", metadata=[PathType(path_type='file')])}#
Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.