{"id":44193,"library":"accelerator-toolbox","title":"Accelerator Toolbox","description":"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.","status":"active","version":"0.8.0","language":"python","source_language":"en","source_url":"https://github.com/ocelot-collab/accelerator-toolbox","tags":["accelerator physics","particle tracking","lattice","simulation"],"install":[{"cmd":"pip install accelerator-toolbox","lang":"bash","label":"stable"}],"dependencies":[{"reason":"Core numerical operations","package":"numpy","optional":false},{"reason":"Optimization and interpolation routines","package":"scipy","optional":false},{"reason":"Plotting utilities","package":"matplotlib","optional":true}],"imports":[{"note":"Lattice is in at.lattice submodule","wrong":"from at import Lattice","symbol":"Lattice","correct":"from at.lattice import Lattice"},{"note":"Element base class in at.lattice","wrong":"from at import Element","symbol":"Element","correct":"from at.lattice import Element"},{"note":"Element types in at.lattice.elements","wrong":"from at.elements import Quadrupole","symbol":"Quadrupole","correct":"from at.lattice.elements import Quadrupole"},{"note":"Dipole is in at.lattice.elements","wrong":"from at import Dipole","symbol":"Dipole","correct":"from at.lattice.elements import Dipole"},{"note":"Tracking function in at.tracking","wrong":"from at import atpass","symbol":"atpass","correct":"from at.tracking import atpass"}],"quickstart":{"code":"import at\nimport at.lattice as lattice\nimport at.lattice.elements as elements\n\n# Create a simple lattice\nring = lattice.Lattice([])\nqd = elements.Quadrupole('QD', 0.5, 1.0)\nring.append(qd)\nprint(ring)","lang":"python","description":"Basic lattice creation with a quadrupole element."},"warnings":[{"fix":"Update imports from 'from at.elements import X' to 'from at.lattice.elements import X'.","message":"AT 0.8.0 changed the import structure: element classes moved from at.elements to at.lattice.elements.","severity":"breaking","affected_versions":">=0.8.0"},{"fix":"Replace find_orbit with find_synchronous.","message":"The function 'find_orbit' is deprecated; use 'find_synchronous' instead.","severity":"deprecated","affected_versions":">=0.7.0"},{"fix":"Always verify element indices when accessing lattice elements by index.","message":"Lattice indexing starts at 0, but element positions in output may be printed 1-based.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.8.0':22 '3.10':25 'acceler':1,3,12,41 'activ':36 'analysi':20 'comput':35 'definit':29 'design':17 'develop':37 'element':28 'focus':14 'lattic':16,30,45 'librari':9 'manipul':31 'particl':11,34,43 'period':39 'physic':42 'provid':27 'python':8,24 'releas':40 'simul':13,46 'support':23 'synchron':33 'toolbox':2,4 'track':18,44 'version':21","created_at":"2026-06-07T12:48:55.872923+00:00","updated_at":"2026-06-07T12:48:55.872923+00:00","problems":[{"fix":"Upgrade to accelerator-toolbox>=0.8.0.","cause":"Outdated version (pre-0.8.0) where lattice was not a submodule.","error":"ModuleNotFoundError: No module named 'at.lattice'"},{"fix":"Use 'from at.lattice.elements import Quadrupole'.","cause":"Incorrect import path for Quadrupole after restructuring.","error":"AttributeError: module 'at' has no attribute 'Quadrupole'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["analytics"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}