smartem_backend.model.mq_event#

Members

AcquisitionCreatedEvent

Event emitted when an acquisition is created

AcquisitionDeletedEvent

Event emitted when an acquisition is deleted

AcquisitionEventBase

Base model for acquisition events

AcquisitionUpdatedEvent

Event emitted when an acquisition is updated

AtlasCreatedEvent

Event emitted when an atlas is created

AtlasDeletedEvent

Event emitted when an atlas is deleted

AtlasEventBase

Base model for atlas events

AtlasTileCreatedEvent

Event emitted when an atlas tile is created

AtlasTileDeletedEvent

Event emitted when an atlas tile is deleted

AtlasTileEventBase

Base model for atlas tile events

AtlasTileUpdatedEvent

Event emitted when an atlas tile is updated

AtlasUpdatedEvent

Event emitted when an atlas is updated

CtfCompleteBody

Create a new model by parsing and validating input data from keyword arguments.

CtfStartBody

Create a new model by parsing and validating input data from keyword arguments.

FoilHoleCreatedEvent

Event emitted when a foil hole is created

FoilHoleDeletedEvent

Event emitted when a foil hole is deleted

FoilHoleEventBase

Base model for foil hole events

FoilHoleModelPredictionEvent

Create a new model by parsing and validating input data from keyword arguments.

FoilHoleUpdatedEvent

Event emitted when a foil hole is updated

GenericEventMessageBody

Create a new model by parsing and validating input data from keyword arguments.

GridCreatedEvent

Event emitted when a grid is created

GridDeletedEvent

Event emitted when a grid is deleted

GridEventBase

Base model for grid events

GridRegisteredEvent

Event emitted when all squares at atlas mag have been registered for a grid

GridSquareCreatedEvent

Event emitted when a grid square is created

GridSquareDeletedEvent

Event emitted when a grid square is deleted

GridSquareEventBase

Base model for grid square events

GridSquareModelPredictionEvent

Create a new model by parsing and validating input data from keyword arguments.

GridSquareRegisteredEvent

Event emitted when all holes at square mag have been registered for a grid square

GridSquareUpdatedEvent

Event emitted when a grid square is updated

GridUpdatedEvent

Event emitted when a grid is updated

MessageQueueEventType

Enum listing various system events that are mapped to messages in RabbitMQ

MicrographCreatedEvent

Event emitted when a micrograph is created

MicrographDeletedEvent

Event emitted when a micrograph is deleted

MicrographEventBase

Base model for micrograph events

MicrographUpdatedEvent

Event emitted when a micrograph is updated

ModelParameterUpdateEvent

Create a new model by parsing and validating input data from keyword arguments.

MotionCorrectionCompleteBody

Create a new model by parsing and validating input data from keyword arguments.

MotionCorrectionStartBody

Create a new model by parsing and validating input data from keyword arguments.

ParticlePickingCompleteBody

Create a new model by parsing and validating input data from keyword arguments.

ParticlePickingStartBody

Create a new model by parsing and validating input data from keyword arguments.

ParticleSelectionCompleteBody

Create a new model by parsing and validating input data from keyword arguments.

ParticleSelectionStartBody

TODO For particle selection start see: DiamondLightSource/cryoem-services class ParticleSelectionStart(BaseModel): input_file: str = Field(..., min_length=1) batch_size: int image_size: int incomplete_batch_size: int = 10000 relion_options: RelionServiceOptions

non_negative_float

class smartem_backend.model.mq_event.MessageQueueEventType(*values)[source]#

Enum listing various system events that are mapped to messages in RabbitMQ

class smartem_backend.model.mq_event.AcquisitionEventBase(*, event_type: MessageQueueEventType)[source]#

Base model for acquisition events

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AcquisitionCreatedEvent(*, event_type: MessageQueueEventType, uuid: str, id: str | None = None)[source]#

Event emitted when an acquisition is created

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AcquisitionUpdatedEvent(*, event_type: MessageQueueEventType, uuid: str, id: str | None = None)[source]#

Event emitted when an acquisition is updated

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AcquisitionDeletedEvent(*, event_type: MessageQueueEventType, uuid: str)[source]#

Event emitted when an acquisition is deleted

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AtlasEventBase(*, event_type: MessageQueueEventType)[source]#

Base model for atlas events

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AtlasCreatedEvent(*, event_type: MessageQueueEventType, uuid: str, id: str | None = None, grid_uuid: str | None = None)[source]#

Event emitted when an atlas is created

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AtlasUpdatedEvent(*, event_type: MessageQueueEventType, uuid: str, id: str | None = None, grid_uuid: str | None = None)[source]#

Event emitted when an atlas is updated

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AtlasDeletedEvent(*, event_type: MessageQueueEventType, uuid: str)[source]#

Event emitted when an atlas is deleted

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AtlasTileEventBase(*, event_type: MessageQueueEventType)[source]#

Base model for atlas tile events

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AtlasTileCreatedEvent(*, event_type: MessageQueueEventType, uuid: str, id: str | None = None, atlas_uuid: str | None = None)[source]#

Event emitted when an atlas tile is created

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AtlasTileUpdatedEvent(*, event_type: MessageQueueEventType, uuid: str, id: str | None = None, atlas_uuid: str | None = None)[source]#

Event emitted when an atlas tile is updated

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.AtlasTileDeletedEvent(*, event_type: MessageQueueEventType, uuid: str)[source]#

Event emitted when an atlas tile is deleted

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridEventBase(*, event_type: MessageQueueEventType)[source]#

Base model for grid events

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridCreatedEvent(*, event_type: MessageQueueEventType, uuid: str, acquisition_uuid: str | None = None)[source]#

Event emitted when a grid is created

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridUpdatedEvent(*, event_type: MessageQueueEventType, uuid: str, acquisition_uuid: str | None = None)[source]#

Event emitted when a grid is updated

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridDeletedEvent(*, event_type: MessageQueueEventType, uuid: str)[source]#

Event emitted when a grid is deleted

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridRegisteredEvent(*, event_type: MessageQueueEventType, grid_uuid: str)[source]#

Event emitted when all squares at atlas mag have been registered for a grid

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridSquareEventBase(*, event_type: MessageQueueEventType)[source]#

Base model for grid square events

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridSquareCreatedEvent(*, event_type: MessageQueueEventType, uuid: str, grid_uuid: str | None = None, gridsquare_id: str | None = None)[source]#

Event emitted when a grid square is created

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridSquareUpdatedEvent(*, event_type: MessageQueueEventType, uuid: str, grid_uuid: str | None = None, gridsquare_id: str | None = None)[source]#

Event emitted when a grid square is updated

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridSquareDeletedEvent(*, event_type: MessageQueueEventType, uuid: str)[source]#

Event emitted when a grid square is deleted

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.GridSquareRegisteredEvent(*, event_type: MessageQueueEventType, uuid: str, grid_uuid: str | None = None)[source]#

Event emitted when all holes at square mag have been registered for a grid square

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.FoilHoleEventBase(*, event_type: MessageQueueEventType)[source]#

Base model for foil hole events

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.FoilHoleCreatedEvent(*, event_type: MessageQueueEventType, uuid: str, foilhole_id: str | None = None, gridsquare_uuid: str | None = None, gridsquare_id: str | None = None)[source]#

Event emitted when a foil hole is created

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.FoilHoleUpdatedEvent(*, event_type: MessageQueueEventType, uuid: str, foilhole_id: str | None = None, gridsquare_uuid: str | None = None, gridsquare_id: str | None = None)[source]#

Event emitted when a foil hole is updated

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.FoilHoleDeletedEvent(*, event_type: MessageQueueEventType, uuid: str)[source]#

Event emitted when a foil hole is deleted

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.MicrographEventBase(*, event_type: MessageQueueEventType)[source]#

Base model for micrograph events

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.MicrographCreatedEvent(*, event_type: MessageQueueEventType, uuid: str, foilhole_uuid: str | None = None, foilhole_id: str | None = None, micrograph_id: str | None = None)[source]#

Event emitted when a micrograph is created

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.MicrographUpdatedEvent(*, event_type: MessageQueueEventType, uuid: str, foilhole_uuid: str | None = None, foilhole_id: str | None = None, micrograph_id: str | None = None)[source]#

Event emitted when a micrograph is updated

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.MicrographDeletedEvent(*, event_type: MessageQueueEventType, uuid: str)[source]#

Event emitted when a micrograph is deleted

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

class smartem_backend.model.mq_event.ParticleSelectionStartBody(*, event_type: MessageQueueEventType, micrograph_uuid: str)[source]#

TODO For particle selection start see: DiamondLightSource/cryoem-services class ParticleSelectionStart(BaseModel):

input_file: str = Field(…, min_length=1) batch_size: int image_size: int incomplete_batch_size: int = 10000 relion_options: RelionServiceOptions

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.