Skip to main content

Accelerator Toolbox

Project description

Introduction

Accelerator Toolbox is a code used for simulating particle accelerators, used particularly for synchrotron light sources. It is hosted on Github. Its original implementation is in Matlab.

pyAT is a Python interface to Accelerator Toolbox. It uses the ‘pass methods’ defined in Accelerator Toolbox, implemented by compiling the C code used in the AT ‘integrators’ into a Python extension. These pass methods are used by higher-level functions to provide physics results.

See the pyAT website for a more detailed introduction.

pyAT supports Python 3.6 to 3.9.

Installation

Install accelerator-toolbox from PyPI:

pip install accelerator-toolbox

Usage

Example usage:

>>> from at.load import load_mat
>>> from at.physics import get_optics
>>> ring = load_mat('test_matlab/hmba.mat')
>>> get_optics(ring, refpts=range(5))

For more examples of how to use pyAT, see pyat_examples.rst.

Developer Notes

Developer notes are in developers.rst.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

accelerator-toolbox-0.2.2.tar.gz (1.6 MB view hashes)

Uploaded source

Built Distributions

accelerator_toolbox-0.2.2-cp310-cp310-win32.whl (378.5 kB view hashes)

Uploaded cp310

accelerator_toolbox-0.2.2-cp39-cp39-win32.whl (378.4 kB view hashes)

Uploaded cp39

accelerator_toolbox-0.2.2-cp38-cp38-win32.whl (378.3 kB view hashes)

Uploaded cp38

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page