mxcubecore.model.protocols.epics¶
Models the epics section of YAML hardware configuration file.
Provides an API to read configured EPICS channels.
Classes
|
EPICS channel configuration. |
|
The 'epics' section of the hardware object's YAML configuration file. |
|
Configuration of an EPICS prefix section. |
- class mxcubecore.model.protocols.epics.Channel(*, suffix: str | None = None, polling_period: int | None = None)[source]¶
Bases:
BaseModelEPICS channel configuration.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class mxcubecore.model.protocols.epics.EpicsConfig(root: RootModelRootType = PydanticUndefined)[source]¶
Bases:
RootModel[Dict[str, Prefix]]The ‘epics’ 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].
- class mxcubecore.model.protocols.epics.Prefix(*, channels: Dict[str, Channel | None] | None)[source]¶
Bases:
BaseModelConfiguration of an EPICS prefix section.
- get_channels() Iterable[Tuple[str, Channel]][source]¶
Get all channels configured for prefix.
This method will fill in optional configuration properties for a channel.
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].