{ "info": { "author": "ttydecks / CERN BE-OP-LHC", "author_email": "tobias.tydecks@cern.ch", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Python Twiss Tool\n***\nThis tool can be used to read any table produced by MAD-X, not only twiss tables.\n***\n## Installation\nIn a terminal run\n\n```shell\npip install twisstool\n```\n\n***\n## Usage\n\n```python\nfrom twisstool import twiss\n\ntw = twiss('madxTableFile.txt')\n```\n\nThe created instance of twiss named `tw` contains (at least) two attributes:\n* `header` containing a list of the columns found in the file\n* `data` containing a pandas dataframe containing the data found in the columns\n* any global parameter found in the header\n
\nIf one would want to plot $\\beta_x$ as a function of $s$, one could do:\n\n```python\nimport matplotlib.pyplot as plt\n\nplt.plot(tw.data['S'], tw.data['BETX'])\nplt.show()\n```\n\nOr you can use the following:\n\n```python\ntw.plot('S', 'BETX')\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.cern.ch/ttydecks/twisstool", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "twisstool", "package_url": "https://pypi.org/project/twisstool/", "platform": "", "project_url": "https://pypi.org/project/twisstool/", "project_urls": { "Homepage": "https://gitlab.cern.ch/ttydecks/twisstool" }, "release_url": "https://pypi.org/project/twisstool/1.20/", "requires_dist": null, "requires_python": "", "summary": "tool for loading any MADX table files like twiss tables etc..", "version": "1.20" }, "last_serial": 4775277, "releases": { "1.2": [ { "comment_text": "", "digests": { "md5": "9fa2596cbb5dc0cded0be43827b47b04", "sha256": "ecda823f7b54dd3e909e95c9c978db0b0c5ca4963569fd179643810e8618a43f" }, "downloads": -1, "filename": "twisstool-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9fa2596cbb5dc0cded0be43827b47b04", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3177, "upload_time": "2019-02-03T17:39:35", "url": "https://files.pythonhosted.org/packages/92/b4/5429458cef63b3d370a1da413866d70b0ae48b8fa883865ef2b47bf28118/twisstool-1.2-py3-none-any.whl" } ], "1.20": [ { "comment_text": "", "digests": { "md5": "0a0e1286bb18b8ca590119bb0cc82563", "sha256": "17ab034c8b656a028ece6315200c66a4d7436262d40c20b09d2cd15c4e4fdfe8" }, "downloads": -1, "filename": "twisstool-1.20-py3-none-any.whl", "has_sig": false, "md5_digest": "0a0e1286bb18b8ca590119bb0cc82563", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3168, "upload_time": "2019-02-03T17:46:32", "url": "https://files.pythonhosted.org/packages/e6/0f/c0569d5a7f6bbf78b191cd2a2605def37c375d6444e31146c997d582c7c7/twisstool-1.20-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0a0e1286bb18b8ca590119bb0cc82563", "sha256": "17ab034c8b656a028ece6315200c66a4d7436262d40c20b09d2cd15c4e4fdfe8" }, "downloads": -1, "filename": "twisstool-1.20-py3-none-any.whl", "has_sig": false, "md5_digest": "0a0e1286bb18b8ca590119bb0cc82563", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3168, "upload_time": "2019-02-03T17:46:32", "url": "https://files.pythonhosted.org/packages/e6/0f/c0569d5a7f6bbf78b191cd2a2605def37c375d6444e31146c997d582c7c7/twisstool-1.20-py3-none-any.whl" } ] }