array#

Array configuration

class ArrayConfigModel(*, name, elements)[source]#

Bases: BaseModel

Base class for configuration of array of Element, BPM, Magnet or CombinedFunctionMagnet.

Parameters:
  • name (str) – Name of the array

  • elements (list[str]) – List of pyaml element names

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.

elements: list[str]#
name: str#
class ArrayConfig(cfg)[source]#

Bases: object

Base 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 (Simulator or ControlSystem) to populate with the array.

Raises:

PyAMLException – When this method is not overridden in a subclass