pleiades.PCX_magCage

class pleiades.PCX_magCage(current_mags=None)[source]

Represent an array of dipole magnets that comprise the PCX magnet cage.

Variables:
  • magnets (list) – list of Magnet objects comprising this instance
  • patches (list of matplotlib.patches.Polygon instances) – patches representing the cage magnets
get_current_tuples(frame='rhoz', units='m')[source]

Return computationally relevant info: list of (rho, z, current) tuples for instance.

set_strength(current_mags)[source]

Set strength of each magnet with 1D array current_mags