smartem_backend.model.mq_event
#
Members
Event emitted when an acquisition is created |
|
Event emitted when an acquisition is deleted |
|
Base model for acquisition events |
|
Event emitted when an acquisition is updated |
|
Event emitted when an atlas is created |
|
Event emitted when an atlas is deleted |
|
Base model for atlas events |
|
Event emitted when an atlas tile is created |
|
Event emitted when an atlas tile is deleted |
|
Base model for atlas tile events |
|
Event emitted when an atlas tile is updated |
|
Event emitted when an atlas is updated |
|
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
Event emitted when a foil hole is created |
|
Event emitted when a foil hole is deleted |
|
Base model for foil hole events |
|
|
Create a new model by parsing and validating input data from keyword arguments. |
Event emitted when a foil hole is updated |
|
|
Create a new model by parsing and validating input data from keyword arguments. |
Event emitted when a grid is created |
|
Event emitted when a grid is deleted |
|
Base model for grid events |
|
Event emitted when all squares at atlas mag have been registered for a grid |
|
Event emitted when a grid square is created |
|
Event emitted when a grid square is deleted |
|
Base model for grid square events |
|
|
Create a new model by parsing and validating input data from keyword arguments. |
Event emitted when all holes at square mag have been registered for a grid square |
|
Event emitted when a grid square is updated |
|
Event emitted when a grid is updated |
|
Enum listing various system events that are mapped to messages in RabbitMQ |
|
Event emitted when a micrograph is created |
|
Event emitted when a micrograph is deleted |
|
Base model for micrograph events |
|
Event emitted when a micrograph is updated |
|
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
|
Create a new model by parsing and validating input data from keyword arguments. |
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 |
|
|
- 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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
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 allowself
as a field name.