Registry / analytics / accelerator-toolbox

accelerator-toolbox

JSON →
library0.8.0pypypi✓ verified 87d ago

Accelerator Toolbox (at) is a Python library for particle accelerator simulations, focusing on lattice design, tracking, and analysis. Version 0.8.0 supports Python >=3.10. It provides element definitions, lattice manipulation, and synchronous particle computations. Active development with periodic releases.

pip install accelerator-toolbox
INSTALL
IMPORT
SIG · ACCELERATOR-TOOLBO
A
accelerator-toolbox
analyticspythonv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Lattice
✓ from at.lattice import Lattice
✗ from at import Lattice
Lattice is in at.lattice submodule
Element
✓ from at.lattice import Element
✗ from at import Element
Element base class in at.lattice
Quadrupole
✓ from at.lattice.elements import Quadrupole
✗ from at.elements import Quadrupole
Element types in at.lattice.elements
Dipole
✓ from at.lattice.elements import Dipole
✗ from at import Dipole
Dipole is in at.lattice.elements
atpass
✓ from at.tracking import atpass
✗ from at import atpass
Tracking function in at.tracking

Basic lattice creation with a quadrupole element.

import at import at.lattice as lattice import at.lattice.elements as elements # Create a simple lattice ring = lattice.Lattice([]) qd = elements.Quadrupole('QD', 0.5, 1.0) ring.append(qd) print(ring)
Debug
Known issues
breakingAT 0.8.0 changed the import structure: element classes moved from at.elements to at.lattice.elements.
fix
Update imports from 'from at.elements import X' to 'from at.lattice.elements import X'.
affects: >=0.8.0
deprecatedThe function 'find_orbit' is deprecated; use 'find_synchronous' instead.
fix
Replace find_orbit with find_synchronous.
affects: >=0.7.0
gotchaLattice indexing starts at 0, but element positions in output may be printed 1-based.
fix
Always verify element indices when accessing lattice elements by index.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'at.lattice'
Outdated version (pre-0.8.0) where lattice was not a submodule.
fix
Upgrade to accelerator-toolbox>=0.8.0.
AttributeError: module 'at' has no attribute 'Quadrupole'
Incorrect import path for Quadrupole after restructuring.
fix
Use 'from at.lattice.elements import Quadrupole'.
Upgrade
Version history
0.8.0latest on PyPI · released Mar 23, 2026
Audit
Dependencies
numpyrequiredCore numerical operations
scipyrequiredOptimization and interpolation routines
matplotliboptionalPlotting utilities
Agent activity
56 hits · last 30 days
node
48
Anthropic
1
Perplexity
1
OpenAI (training)
1
Resources

No resource links recorded.

accelerator-toolbox — pip install accelerator-toolbox · libregistry