pyaml.magnet.sextupole#

Sextupole magnet elements.

This module defines normal sextupole configuration and runtime interfaces.

Classes

Sextupole(name[, model, lattice_names, ...])

Normal sextupole magnet element.

class pyaml.magnet.sextupole.Sextupole(name, model=None, lattice_names=None, description=None)#

Bases: Magnet, DynamicValidation

Normal sextupole magnet element.

The strength is applied to the PolynomB[2] component of the underlying lattice element, the field component used for correcting chromaticity. Strengths are expressed in m-2 and converted to power-converter values by the attached magnet model.

Parameters:
  • name (str) – Element name.

  • model (MagnetModel | None, optional) – Magnet model used to convert between strength and hardware value, and to resolve the underlying control-system device names.

  • lattice_names (str | None, optional) – Name or names of the matching element(s) in the simulated lattice. Defaults to name.

  • description (str | None, optional) – Human-readable description of the magnet.

See also

Magnet

Base class listing the strength and hardware accessors.

Configuration

The model can be defined inline or in a separate file. See pyaml.magnet.model and its subclasses for model configuration.

- type: pyaml.magnet.sextupole
  name: SEXTUPOLE_NAME
  lattice_names: LATTICE_SEXTUPOLE_NAME
  model: path/to/magnet_model.yaml