swc.aeon.schema.environment#
Classes for defining environment configuration models.
- class swc.aeon.schema.environment.LightCycle(**data)[source]#
Bases:
BaseSchemaRepresents a network client for automated room light control.
- model_config: ClassVar[ConfigDict] = {'alias_generator': <function to_camel>, 'arbitrary_types_allowed': True, 'field_title_generator': <function BaseSchema.<lambda>>, 'from_attributes': True, 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)#
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.
- class swc.aeon.schema.environment.WeightScale(**data)[source]#
Bases:
BaseSchemaRepresents acquisition functionality for automated habitat weighing scales.
- model_config: ClassVar[ConfigDict] = {'alias_generator': <function to_camel>, 'arbitrary_types_allowed': True, 'field_title_generator': <function BaseSchema.<lambda>>, 'from_attributes': True, 'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- model_post_init(context, /)#
This function is meant to behave like a BaseModel method to initialise private attributes.
It takes context as an argument since that’s what pydantic-core passes when calling it.