serialized_magnet#
- class ConfigModel(*, name, description=None, lattice_names=None, function, elements, model=None)[source]#
Bases:
ElementConfigModelCreate 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.
- model: MagnetModel | None#
Object in charge of converting magnet strengths to currents
- class ReadWriteSerializedHardwares(cfg, elements)[source]#
Bases:
ReadWriteSerializedStrengths
- class ReadWriteSerializedStrengths(cfg, elements)[source]#
Bases:
ReadWriteFloatScalar
- class SerializedMagnets(cfg, peer=None)[source]#
Bases:
ElementClass managing serialized magnets: a set of magnet with the same set point. The set point is usually managed by only one power supply but it can be covered by several ones. If several power supplies
- Parameters:
cfg (ConfigModel) – Configuration object TODO: to describe
- Raises:
pyaml.PyAMLException – In case of wrong initialization
- property hardware: ReadWriteFloatScalar#
Gives access to the strengths of this those magnets in hardware unit when possible
- property strength: ReadWriteFloatScalar#
Gives access to the strengths of those magnets in physics unit