mxcubecore.model.nstate¶
Pydantic models for N-state hardware option lists.
Classes
|
A single selectable value from an N-state device. |
- class mxcubecore.model.nstate.NStateOption(*, value: str | tuple[float, float], label: str | None = None, description: str | None = None, severity: Literal['info', 'warning', 'danger'] | None = None)[source]¶
Bases:
BaseModelA single selectable value from an N-state device.
Stores a value along some optional information for the user to make a better informed choice.
- Parameters:
- model_config: ClassVar[ConfigDict] = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].