{ "info": { "author": "Thomas Gl\u00e4\u00dfle", "author_email": "t_glaessle@gmx.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Scientific/Engineering :: Medical Science Apps.", "Topic :: Scientific/Engineering :: Physics" ], "description": "madseq\r\n------\r\n|Build Status| |Coverage| |Version| |Downloads| |License|\r\n\r\nDescription\r\n~~~~~~~~~~~\r\n\r\nScript to parse MAD-X_ sequences from a source file and perform simple\r\ntransformations on the elements.\r\n\r\n.. _MAD-X: http://madx.web.cern.ch/madx\r\n\r\nDependencies\r\n~~~~~~~~~~~~\r\n\r\n- docopt_ to parse command line options\r\n- pydicti_ to store and access element attributes\r\n- pyyaml_ to parse slicing definition and use YAML output format\r\n\r\n.. _docopt: http://docopt.org/\r\n.. _pydicti: https://github.com/coldfix/pydicti\r\n.. _pyyaml: https://pypi.python.org/pypi/PyYAML/\r\n\r\n\r\nInstallation\r\n~~~~~~~~~~~~\r\n\r\nThe setup is to be performed as follows\r\n\r\n.. code-block:: bash\r\n\r\n python setup.py install\r\n\r\n\r\nUsage\r\n~~~~~\r\n\r\nThe command should be called as follows::\r\n\r\n Usage:\r\n madseq.py [-j|-y] [-s ] [] []\r\n madseq.py (--help | --version)\r\n\r\n Options:\r\n -j, --json Use JSON as output format\r\n -y, --yaml Use YAML as output format\r\n -s , --slice= Set slicing definition file\r\n -h, --help Show this help\r\n -v, --version Show version information\r\n\r\nIf ```` is not specified the standard input stream will be used to\r\nread the input file. Respectively, the standard output stream will be used\r\nif ```` is not specified.\r\n\r\nThe slicing definition defines a list of slicing instructions where each\r\nentry is a dictionary with the following groups of mutually exclusive keys::\r\n\r\n str type: match only elements with the specified type\r\n str name: match only elements with the specified name\r\n\r\n bool use_at: use manually entered AT values, default is True\r\n\r\n float density: slice element with the specified number of slices per meter\r\n int slice: slice element using a fixed count, default=1\r\n\r\n bool makethin: whether to convert the slices to MULTIPOLE\r\n\r\n bool template: whether to put a template for the element in front\r\n\r\n str style: slicing style, either 'uniform' or 'loop', defaults to 'uniform'\r\n\r\n\r\nExample file:\r\n\r\n.. code-block:: yaml\r\n\r\n - type: drift\r\n density: 10\r\n - name: B1DK1\r\n slice: 10\r\n makethin: true\r\n style: uniform\r\n\r\nNote, that even if an element is matched by multiple rules, only the first\r\none will be used.\r\n\r\n\r\nCaution\r\n~~~~~~~\r\n\r\n- Do not use multi line commands in the input sequences. At the moment\r\n these are not parsed correctly!\r\n\r\n- Do not add any ``at=`` position arguments in the input sequences. The\r\n madseq script takes care of this responsibility.\r\n\r\n\r\n.. |Build Status| image:: https://api.travis-ci.org/coldfix/madseq.png?branch=master\r\n :target: https://travis-ci.org/coldfix/madseq\r\n :alt: Build Status\r\n\r\n.. |Coverage| image:: https://coveralls.io/repos/coldfix/madseq/badge.png?branch=master\r\n :target: https://coveralls.io/r/coldfix/madseq\r\n :alt: Coverage\r\n\r\n.. |Version| image:: http://coldfix.de:8080/v/madseq/badge.png\r\n :target: https://pypi.python.org/pypi/madseq/\r\n :alt: Latest Version\r\n\r\n.. |Downloads| image:: http://coldfix.de:8080/d/madseq/badge.png\r\n :target: https://pypi.python.org/pypi/madseq/\r\n :alt: Downloads\r\n\r\n.. |License| image:: http://coldfix.de:8080/license/madseq/badge.png\r\n :target: https://pypi.python.org/pypi/madseq/\r\n :alt: License\r\n\r\n\r\nChangelog\r\n~~~~~~~~~\r\n\r\n0.4.4\r\n=====\r\n\r\n- fix check for filename extension\r\n\r\n\r\n0.4.3\r\n=====\r\n\r\n- fix some sliced multipole coefficients\r\n- handle QUADRUPOLE.K1S in makethin\r\n- fix a naming problem when slicing with template\r\n- fix python3 problems\r\n\r\n\r\n0.4.2\r\n=====\r\n\r\n- allow .json files to be passed as the -s parameter (extension is used to\r\n distinguish .json from .yaml)\r\n\r\n\r\n0.4.1\r\n=====\r\n\r\n- use different names for slices\r\n- fix sequence name in comment before templates\r\n\r\n\r\n0.4.0\r\n=====\r\n\r\n- add 'use_at' slicing option that enables to use AT values\r\n\r\n\r\n0.3.2\r\n=====\r\n\r\n- internal: remove attribute access for Element properties\r\n- fix bugged Element.copy and .__contains__ regarding to base elements\r\n- fix JSON/YAML serialization errors\r\n- fix bugged implementation for predefined elements\r\n- fix bugged LOOP style\r\n- fix bugged makethin\r\n- fix bugged use_optics\r\n- rename 'use_optics' => 'template'. technically, this is a change in the\r\n public interface, but we are still in 0.X and furthermore the feature was\r\n not working before anyway.\r\n\r\n\r\n0.3.1\r\n=====\r\n\r\n- use `semantic versioning `\r\n- fix deep attribute lookup for elements\r\n\r\n\r\n0.3\r\n===\r\n\r\n- redesigned command line\r\n- fix erroneous parsing of MAD-X arrays, like KNL={...}\r\n- remove inline attributes for slicing\r\n- extended slicing via slicing configuration file\r\n- fix usability of template (predefined) elements", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/coldfix/madseq", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "madseq", "package_url": "https://pypi.org/project/madseq/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/madseq/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/coldfix/madseq" }, "release_url": "https://pypi.org/project/madseq/0.4.4/", "requires_dist": null, "requires_python": null, "summary": "Parser/transformator for MAD-X sequences", "version": "0.4.4" }, "last_serial": 4329705, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "289652f1e4eb7bc3f2875f61d35fee84", "sha256": "9631cee95873c90be0522325b90e4c1ee8d332d824f4f7f84f4cd0406e6ad4bb" }, "downloads": -1, "filename": "madseq-0.1.tar.gz", "has_sig": false, "md5_digest": "289652f1e4eb7bc3f2875f61d35fee84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8736, "upload_time": "2014-01-23T17:03:50", "url": "https://files.pythonhosted.org/packages/e6/0a/e47dcd7c3fea2c001fe85ec6f240969cffd03593b299f553bbed42f7ff68/madseq-0.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c9adb63f81fa9277b383df267bca91e6", "sha256": "9d406dbbe1573adc4bb6c77450af1ea97d68f4a484afedb1dea12617604ac116" }, "downloads": -1, "filename": "madseq-0.3.tar.gz", "has_sig": false, "md5_digest": "c9adb63f81fa9277b383df267bca91e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9823, "upload_time": "2014-05-03T09:26:34", "url": "https://files.pythonhosted.org/packages/6c/c7/e9488d9a8df9bf6a5a137f783c57b80d89bb9ac20a57fb10123686c4dfaf/madseq-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "7baae476dbcf6cb7e1b895bd72cc9b73", "sha256": "cfe7f66d0c1b37efe4afbf474cb9dd3b5076c7c2a498eaf657f599c2ea64fdc9" }, "downloads": -1, "filename": "madseq-0.3.1.tar.gz", "has_sig": false, "md5_digest": "7baae476dbcf6cb7e1b895bd72cc9b73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9966, "upload_time": "2014-05-03T10:10:37", "url": "https://files.pythonhosted.org/packages/bd/50/917af1a17f569900a1913943939fd698f675068045cb86afae7410a05d52/madseq-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "b1d89f8bae8dab0ea8c6a2007e8b4a50", "sha256": "59b911207dec7bc9f5bc61fa8aa2470004008e9d86875907b889e3b2f7112973" }, "downloads": -1, "filename": "madseq-0.3.2.tar.gz", "has_sig": false, "md5_digest": "b1d89f8bae8dab0ea8c6a2007e8b4a50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13434, "upload_time": "2014-05-03T15:39:43", "url": "https://files.pythonhosted.org/packages/29/ae/f5c5d9d460fa88a8ded5cb857f0c3dae21240459a058aa79db8121a9b4a2/madseq-0.3.2.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "a8c0e65102bf151a45f59d8dc2d84baf", "sha256": "42809761a04798a2087df660da3069fc6309981170374fca91b45680bc33b569" }, "downloads": -1, "filename": "madseq-0.4.0.tar.gz", "has_sig": false, "md5_digest": "a8c0e65102bf151a45f59d8dc2d84baf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13651, "upload_time": "2014-05-03T16:03:35", "url": "https://files.pythonhosted.org/packages/49/2c/0df8fba801a3b220dba318b817a78413b2e69f889f3eae722a27a677aa43/madseq-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "7244a781268f7b9c2d5cb51200b98f16", "sha256": "bbe11c05274cc83702e189ebd6b00f09a9dd61625a488d2670688567ee1b1b53" }, "downloads": -1, "filename": "madseq-0.4.1.tar.gz", "has_sig": false, "md5_digest": "7244a781268f7b9c2d5cb51200b98f16", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13822, "upload_time": "2014-05-03T18:11:17", "url": "https://files.pythonhosted.org/packages/99/dd/1966b2414e8a68344debeacc22db35f2a822a7df41c8761743b290a9ac97/madseq-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "13ad175f1b26809b05f98a4883c02bb6", "sha256": "c7526a06055b0d079c098bb9542db012633128f494d06a12add5dc6608bedf92" }, "downloads": -1, "filename": "madseq-0.4.2.tar.gz", "has_sig": false, "md5_digest": "13ad175f1b26809b05f98a4883c02bb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13980, "upload_time": "2014-05-03T18:32:04", "url": "https://files.pythonhosted.org/packages/00/7c/d45acb44729fc1c1658b27ed0ad3f8f9f46eb5bc407c9bbf9c3327ea4d03/madseq-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "a10f9153900589d998a3ef5426951115", "sha256": "566448c81a2013b36da7a5af361c95f31a83df002b85cc66e246c76bf63872d6" }, "downloads": -1, "filename": "madseq-0.4.3.tar.gz", "has_sig": false, "md5_digest": "a10f9153900589d998a3ef5426951115", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18376, "upload_time": "2014-05-04T12:52:17", "url": "https://files.pythonhosted.org/packages/b9/44/5fa44f93c5b969016e73f44fe61120f0c649e9e47b1eb795303829d1be39/madseq-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "1308a64377f87f0419e1f0169bf4e467", "sha256": "e1538bdec2d55f4a7b4c0c3e412c7d00732d579948b9a7adcf42cd45b19c6148" }, "downloads": -1, "filename": "madseq-0.4.4.tar.gz", "has_sig": false, "md5_digest": "1308a64377f87f0419e1f0169bf4e467", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18422, "upload_time": "2014-07-22T01:08:01", "url": "https://files.pythonhosted.org/packages/0f/46/9e20a7c9635f5cd968834348bf90c22dabfbaaf18ce723bb89cd9888e1bf/madseq-0.4.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1308a64377f87f0419e1f0169bf4e467", "sha256": "e1538bdec2d55f4a7b4c0c3e412c7d00732d579948b9a7adcf42cd45b19c6148" }, "downloads": -1, "filename": "madseq-0.4.4.tar.gz", "has_sig": false, "md5_digest": "1308a64377f87f0419e1f0169bf4e467", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18422, "upload_time": "2014-07-22T01:08:01", "url": "https://files.pythonhosted.org/packages/0f/46/9e20a7c9635f5cd968834348bf90c22dabfbaaf18ce723bb89cd9888e1bf/madseq-0.4.4.tar.gz" } ] }