array#
Array configuration
- class ArrayConfigModel(*, name, elements)[source]#
Bases:
BaseModelBase class for configuration of array of
Element,BPM,MagnetorCombinedFunctionMagnet.Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- class ArrayConfig(cfg)[source]#
Bases:
objectBase class that implements configuration for access to arrays (families)
- fill_array(holder)[source]#
Fill array with elements from the holder and add the array to the holder.
- Parameters:
holder (ElementHolder) – The element holder (
SimulatororControlSystem) to populate with the array.- Raises:
PyAMLException – When this method is not overridden in a subclass