pcdsdevices.variety.set_metadata
- pcdsdevices.variety.set_metadata(cpt, metadata)
Set “variety” metadata on a given component.
Expands dotted keys into sub-dictionaries.
Validates the metadata against the known schema.
- Parameters:
cpt (ophyd.Component) – The component for which to set the metadata.
metadata – The metadata to add.
- Raises:
ValueError – If an invalid variety or no variety is specified, or
cpt
is not anophyd.Component
.schema.SchemaError – If the metadata does not adhere to the variety schema as required.