Personal collection of methods useful for accelerator physics
Project description
Acc Lib
Accelerator physics library containing plotting tools and other useful methods to handle data from X-suite tracking and other beam dynamics software, in constant evolution along with my PhD projects.
Installation can be easily done via:
pip install acc_lib
The class plot_tools
contains several plotting methods to illustrate the turn-by-turn data generated by X-suite trackers, including centroid evolution, phase space distributions, Twiss parameters, simple FFT and tune footprint.
The class resonance_lines
, based upon the base class from Foteini Asvesta, contains methods to plot resonance lines of a given order in a given interval for tune plots. In particular, the method plot_resonance_and_tune_footprint
allows to print the tune footprint from X-suite tracking together with the resonance lines of a given order.
The class particles
allows to display particle properties.
The class madx_tools
contains methods to print errors from a crashed MAD-X process, print the elements neatly, plot the beam envelope, get the realistic apertures for both starting and end points of each element, and to plot the aperture together with the beam envelope.
The class footprint
, inspired by this X-suite example, allows for convenient plotting of footprints of coordinates in Cartesian/polar, but also of the tunes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file acc_lib-0.0.29.tar.gz
.
File metadata
- Download URL: acc_lib-0.0.29.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33c6b2d2cf13edd3eb55e0ed6492a85ad9261820641928a4b381749652dbc440 |
|
MD5 | 5cb8d12f1f4fcd6061225a14a3ec2150 |
|
BLAKE2b-256 | 605c96f25a5389b3c693cb05860bd4fb0e9b4e132dd9b8d1e562ec80bb34b5b6 |
File details
Details for the file acc_lib-0.0.29-py3-none-any.whl
.
File metadata
- Download URL: acc_lib-0.0.29-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d63e3d99d448f8dcb3744594a1659ed93c364f870200a6a64acd4fcbd95907a9 |
|
MD5 | b61a6921ccb600ab739a5be77432309b |
|
BLAKE2b-256 | a242d665bf117d1540bb1ce6b8748957faaaa1555e9f49d0a60f70fd8e9881ea |