{ "info": { "author": "Felix Andreas", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Scientific/Engineering" ], "description": "# apace\n[![Python Version](https://img.shields.io/pypi/pyversions/apace)](https://pypi.org/project/apace/)\n[![PyPI](https://img.shields.io/pypi/v/apace.svg)](https://pypi.org/project/apace/)\n[![CI](https://github.com/andreasfelix/apace/workflows/CI/badge.svg)](https://github.com/andreasfelix/apace/actions?query=workflow%3ACI)\n[![Docs](https://readthedocs.org/projects/apace/badge/?version=latest)](https://apace.readthedocs.io)\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://github.com/andreasfelix/apace/blob/master/LICENSE)\n\n**apace** is yet **a**nother **p**article **a**ccelerator **c**od**e** designed for the optimization of beam optics. It is available as Python package and aims to provide a convenient and straightforward API to make use of Python's numerous scientific libraries.\n\n\n## Installing\nInstall and update using pip:\n\n```sh\npip install -U apace\n```\n\n## Requirements\n- Python 3.6 or higher (CPython or PyPy)\n- CFFI 1.0.0 or higher\n- NumPy/SciPy\n- Matplotlib\n\n\n## Quick Start\nImport apace:\n```python\nimport apace as ap\n```\n\nCreate a ring consisting out of 8 FODO cells:\n```python\nd1 = ap.Drift('D1', length=0.55)\nb1 = ap.Dipole('B1', length=1.5, angle=0.392701, e1=0.1963505, e2=0.1963505)\nq1 = ap.Quadrupole('Q1', length=0.2, k1=1.2)\nq2 = ap.Quadrupole('Q2', length=0.4, k1=-1.2)\nfodo_cell = ap.Lattice('FODO', [q1, d1, b1, d1, q2, d1, b1, d1, q1])\nfodo_ring = ap.Lattice('RING', [fodo_cell] * 8)\n```\n \nCalculate the Twiss parameters:\n```python\ntwiss = ap.Twiss(fodo_ring)\n```\n\nPlot horizontal and vertical beta functions using matplotlib:\n```python\nimport matplotlib.pyplot as plt\nplt.plot(twiss.s, twiss.beta_x, twiss.s, twiss.beta_y)\n```\n\n## Links\n- Documentation: https://apace.readthedocs.io\n- API Reference: https://apace.readthedocs.io/en/stable/reference/apace/index.html\n- Examples: https://apace.readthedocs.io/en/docs/examples/index.html\n- Releases: https://pypi.org/project/apace/\n- Code: https://github.com/andreasfelix/apace\n- Issue tracker: https://github.com/andreasfelix/apace/issues\n\n## License\n[GNU General Public License v3.0](https://github.com/andreasfelix/apace/blob/master/LICENSE)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/andreasfelix/apace", "keywords": "", "license": "GNU General Public License v3.0", "maintainer": "", "maintainer_email": "", "name": "apace", "package_url": "https://pypi.org/project/apace/", "platform": "", "project_url": "https://pypi.org/project/apace/", "project_urls": { "Homepage": "https://github.com/andreasfelix/apace" }, "release_url": "https://pypi.org/project/apace/0.1.0/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Another Particle Accelerator Code", "version": "0.1.0", "yanked": false, "yanked_reason": null }, "last_serial": 11588162, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0d41e29b988ad75179f948c08384a633", "sha256": "9c4b5fb3fa359f2e8d0270a3f3be8ae4184cbdf3d71b73d32a15f82ad0442d5e" }, "downloads": -1, "filename": "apace-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0d41e29b988ad75179f948c08384a633", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 32777, "upload_time": "2019-10-30T17:10:29", "upload_time_iso_8601": "2019-10-30T17:10:29.857014Z", "url": "https://files.pythonhosted.org/packages/80/7f/f404f656e6cdd1068fe0e60323cc40c87bf54d3e0cf0cec22eb9640fe56a/apace-0.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b1fafb9c4d984734dd90c24547a6fd12", "sha256": "0c476ad8fda190160096c4635947ba02022030ed82051b347daac6e84e7a44a6" }, "downloads": -1, "filename": "apace-0.0.2.tar.gz", "has_sig": false, "md5_digest": "b1fafb9c4d984734dd90c24547a6fd12", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 46148, "upload_time": "2019-11-07T03:02:32", "upload_time_iso_8601": "2019-11-07T03:02:32.474630Z", "url": "https://files.pythonhosted.org/packages/3c/a3/5e7b57c80c635b5c7b3afede298881831217e207e8f765beb912abe8a796/apace-0.0.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "70e9cc78e82cfedf519e53c5266c5b81", "sha256": "fb2c0b7e4119abb64e1a955617b3b11a374d85d915b4f90bfdf09fdef38cd5e3" }, "downloads": -1, "filename": "apace-0.0.3.tar.gz", "has_sig": false, "md5_digest": "70e9cc78e82cfedf519e53c5266c5b81", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 48083, "upload_time": "2020-02-11T22:39:56", "upload_time_iso_8601": "2020-02-11T22:39:56.939550Z", "url": "https://files.pythonhosted.org/packages/bf/f5/67706edb7444cb52269e68eda5df6c9df331d9e75f333cdc62870a34853b/apace-0.0.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "1dd7a81b9c27452294f763aa1adda6e2", "sha256": "48853a367150aa3eb6c37aa9dc2faa64d34598a0777c1da656f0fde1aae3d8c6" }, "downloads": -1, "filename": "apace-0.0.4.tar.gz", "has_sig": false, "md5_digest": "1dd7a81b9c27452294f763aa1adda6e2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 47611, "upload_time": "2020-05-24T20:25:55", "upload_time_iso_8601": "2020-05-24T20:25:55.460195Z", "url": "https://files.pythonhosted.org/packages/d0/ae/bd2ce37a41ba6ecf39c0bde76feb6a8388a14359b0eb548c4b6d9dfb6c05/apace-0.0.4.tar.gz", "yanked": false, "yanked_reason": null } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "021cb4901d1452b60a98b966c84b2d5b", "sha256": "a01dcb2a1332fa3ff17cd8371f32536b8b3d5832d93215abb8ce1907ea21337e" }, "downloads": -1, "filename": "apace-0.0.5.tar.gz", "has_sig": false, "md5_digest": "021cb4901d1452b60a98b966c84b2d5b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 51030, "upload_time": "2020-10-23T09:36:30", "upload_time_iso_8601": "2020-10-23T09:36:30.950658Z", "url": "https://files.pythonhosted.org/packages/2d/4b/c18670442e55bf3c3dc1be6e8a0ff141e4c7428bb7da36eaf7ecf63c9d24/apace-0.0.5.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "02d17d6f65484af8687278504401e0c9", "sha256": "1d3107c4cd21216b2296bf683cbb04db3211794145295d9c0dd1c748f54c5e93" }, "downloads": -1, "filename": "apace-0.1.0.tar.gz", "has_sig": false, "md5_digest": "02d17d6f65484af8687278504401e0c9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 51228, "upload_time": "2021-09-29T22:52:47", "upload_time_iso_8601": "2021-09-29T22:52:47.596213Z", "url": "https://files.pythonhosted.org/packages/ff/c1/1009fb60c2ca20a6af69a28c2525aa0a81978a52ffd903561477fa8e3ec7/apace-0.1.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "02d17d6f65484af8687278504401e0c9", "sha256": "1d3107c4cd21216b2296bf683cbb04db3211794145295d9c0dd1c748f54c5e93" }, "downloads": -1, "filename": "apace-0.1.0.tar.gz", "has_sig": false, "md5_digest": "02d17d6f65484af8687278504401e0c9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 51228, "upload_time": "2021-09-29T22:52:47", "upload_time_iso_8601": "2021-09-29T22:52:47.596213Z", "url": "https://files.pythonhosted.org/packages/ff/c1/1009fb60c2ca20a6af69a28c2525aa0a81978a52ffd903561477fa8e3ec7/apace-0.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }