mxcubecore.model.protocols.sardana¶
Classes
|
Sardana command configuration. |
|
Configuration of a Sardana door. |
|
The 'sardana' section of the hardware object's YAML configuration file. |
- class mxcubecore.model.protocols.sardana.Command(*, name: str | None = None)[source]¶
Bases:
BaseModelSardana command configuration.
- Parameters:
name (str | None)
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class mxcubecore.model.protocols.sardana.Door(*, commands: Dict[str, Command | None] | None = None)[source]¶
Bases:
BaseModelConfiguration of a Sardana door.
- get_commands() Iterable[Tuple[str, Command]][source]¶
Get all commands configured for this door.
This method will fill in optional configuration properties for commands.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class mxcubecore.model.protocols.sardana.SardanaConfig(root: RootModelRootType = PydanticUndefined)[source]¶
Bases:
RootModel[Dict[str, Door]]The ‘sardana’ section of the hardware object’s YAML configuration file.
- Parameters:
root (RootModelRootType)
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].