{ "info": { "author": "Marcos Alfredo N\u00fa\u00f1ez", "author_email": "mnunez@fleni.org.ar", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": ".. highlight:: python3\n===============\nsimplemdx\n===============\n\n\n.. image:: https://img.shields.io/pypi/v/simplemdx.svg\n :target: https://pypi.python.org/pypi/simplemdx\n\n.. image:: https://img.shields.io/travis/marnunez/simplemdx.svg\n :target: https://travis-ci.org/marnunez/simplemdx\n\n.. image:: https://ci.appveyor.com/api/projects/status/xb07amo9s7stk37r?svg=true\n :target: https://ci.appveyor.com/project/marnunez/simplemdx\n :alt: Windows build status\n\n.. image:: https://readthedocs.org/projects/simplemdx/badge/?version=latest\n :target: https://simplemdx.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/marnunez/simplemdx/shield.svg\n :target: https://pyup.io/repos/github/marnunez/simplemdx/\n :alt: Updates\n\n.. image:: https://coveralls.io/repos/github/marnunez/simplemdx/badge.svg?branch=master\n :target: https://coveralls.io/github/marnunez/simplemdx?branch=master\n :alt: Coverage\n\n\n\n\n\nA simple BTS MDX file parser and toolkit written in Python based on BeautifulSoup_\n\n\n* Free software: GNU General Public License v3\n* Documentation: https://simplemdx.readthedocs.io.\n\n\nFeatures\n--------\n* Compatible with Python 2.7 and 3.4 onwards\n* Linux, OSX and Windows support\n\nsimplemdx gives access to:\n\n* trial MDXs (marker coordinates, emg channels, etc)\n* session and patient MDXs (antropometric data, subject metadata)\n* normative ENB files (joint angles normatives, emg normatives, etc)\n\nUsage\n-----\n\nTo load the contents of a trial mdx\n\n.. code:: python\n\n from simplemdx.parser import Parser\n\n a = Parser('myfile.mdx')\n\nOnce loaded, metadata can be accessed like:\n\n.. code:: python\n\n label = a.label\n date = a.date\n\n\nIt also loads all it's streams, and names them according to their contents. The named streams can be:\n\n* markers\n* emg\n* static\n* cycle\n\n\nStreams\n-------\n\nEvery stream has its own metadata(such as frequency, start time and number of frames\n\n.. code:: python\n\n a = Parser('myfile.mdx')\n m = a.markers # marker stream\n\n m.freq\n m.nFrames\n m.startTime\n\n\nMarker streams\n--------------\n\nMarkers can be retrieved from the stream by index or label\n\n.. code:: python\n\n c7 = a.markers['c7']\n m = a.markers[0] # The first marker on the stream\n\nor iterated\n\n.. code:: python\n\n for marker in a.markers:\n print(marker.label)\n\nThis stream can be converted to an OpenSIM .trc file like this\n\n.. code:: python\n\n a.markers.toTRC()\n\nBy default, it creates a trc file with the same label as the trial mdx and all the included markers.\nIt is important to note that it will output the largest common chunk of data (the largest interval of time for which all markers are visible). This is to avoid None data in the .trc file. One can restrict the output to certain markers and change the output filename\n\n.. code:: python\n\n a.markers.toTRC(filename='my_trc_output.trc',labels=['c7','rasis','lasis'])\n\nAs a simple way to inspect the stream, one can plot it\n\n.. code:: python\n\n a.markers.plot()\n\nThis will display a simple matplotlib 3D scatter plot with the markers and the references\n\nData items\n----------\n\nThe data for the streams inner tags are stored in DataItems. BTS follows an Item/Segment approach for storing most of it. For retrieving a segment of a marker, one can call the data attribute\n\n\n.. code:: python\n\n c7 = a.markers['c7']\n s = c7.data\n\ndata will return a Segment object, or a list of Segment objects. Each Segment has a list for each coordinate (for a marker example, X, Y and Z) and the Segment's starting frame\n\n.. code:: python\n\n seg = c7.data\n if isintance(seg,Segment):\n print(\"First frame: {}\".format(seg.frame))\n print(\"X data: {}\".format(seg.X))\n\naddicionally, data can be retrieved as a continuous stream using datac instead of data. This will merge all segments into one, added a None padding. and return a single Segment starting at frame 0.\n\n.. code:: python\n\n segc = c7.datac\n print(\"X data: {}\".format(seg.X))\n\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n.. _BeautifulSoup: https://www.crummy.com/software/BeautifulSoup/bs4/doc/\n\n\n=======\nHistory\n=======\n\n0.1.0 (2018-02-27)\n------------------\n\n* First release on PyPI.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/marnunez/simplemdx", "keywords": "simplemdx", "license": "GNU GPLv3 Licence", "maintainer": "", "maintainer_email": "", "name": "simplemdx", "package_url": "https://pypi.org/project/simplemdx/", "platform": "", "project_url": "https://pypi.org/project/simplemdx/", "project_urls": { "Homepage": "https://github.com/marnunez/simplemdx" }, "release_url": "https://pypi.org/project/simplemdx/0.1.10/", "requires_dist": [ "Click (>=6.0)" ], "requires_python": "", "summary": "A simple BTS MDX file parser based on BeautifulSoup", "version": "0.1.10" }, "last_serial": 4355574, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "75612896f477fa1e72cd5ff7e04e3ac4", "sha256": "4208a4f38fa6f9601413a1a5a19270d7488055c77169073175db03552384040e" }, "downloads": -1, "filename": "simplemdx-0.1.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "75612896f477fa1e72cd5ff7e04e3ac4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 30229, "upload_time": "2018-10-09T12:11:24", "url": "https://files.pythonhosted.org/packages/4d/9c/cad37b1229d2d7471b6a2adec03e50ee26e5255ad5ad8377a4e511dcc8c9/simplemdx-0.1.10-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f9750d552c420e7680c4d20260a1c57", "sha256": "c8b27c5e9bff0349ff9d66837b9221530f4bf4e38c3c6f8068ced64085a62cba" }, "downloads": -1, "filename": "simplemdx-0.1.10.tar.gz", "has_sig": false, "md5_digest": "7f9750d552c420e7680c4d20260a1c57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8626050, "upload_time": "2018-10-09T12:11:26", "url": "https://files.pythonhosted.org/packages/ed/97/a103beca42bac358115326cd584249ef1d986fb9b7d96d9702246b22b87d/simplemdx-0.1.10.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "fdbf02b51c87c3e698aec81f2c523bd8", "sha256": "eec3140f972f225435dbd8ce5e8cd509ebeac96e6d38fc4cb68cc1393cd75fa9" }, "downloads": -1, "filename": "simplemdx-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fdbf02b51c87c3e698aec81f2c523bd8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7622, "upload_time": "2018-02-28T19:28:06", "url": "https://files.pythonhosted.org/packages/19/f1/7d698048ecdb2ec4ba1897d500949e87637188fd0e6d277cff5a678d4549/simplemdx-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "99f112a00a7e82acdcef093c79c0ffec", "sha256": "da6250dc3434a714c65e2748826bf869702ffdf02a8b4d17c23326913ff723ef" }, "downloads": -1, "filename": "simplemdx-0.1.2.tar.gz", "has_sig": false, "md5_digest": "99f112a00a7e82acdcef093c79c0ffec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7614130, "upload_time": "2018-02-28T19:28:09", "url": "https://files.pythonhosted.org/packages/48/ed/43c9989a572b1a59cffbebad50ad140a0ce4ca3f4f534ae9c6d5a670c1ac/simplemdx-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "a1a59d5095d0ea4565305ef3bf8584fb", "sha256": "03519558e022b68e481397274894faa3d1700f37766c481b5cfa51a6d9db9a0e" }, "downloads": -1, "filename": "simplemdx-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a1a59d5095d0ea4565305ef3bf8584fb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10078, "upload_time": "2018-03-05T01:57:13", "url": "https://files.pythonhosted.org/packages/8a/9c/7930aa992c71e669283935db7d389e2d25dc8315d200f2408085ff47e455/simplemdx-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9cacf151b29fe766d8f40544527df3ce", "sha256": "7fa5ce2d4651fe0c15bb27049d4a472be43e412f80f4157f9dc4024efbc4a368" }, "downloads": -1, "filename": "simplemdx-0.1.3.tar.gz", "has_sig": false, "md5_digest": "9cacf151b29fe766d8f40544527df3ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7616514, "upload_time": "2018-03-05T01:57:16", "url": "https://files.pythonhosted.org/packages/d9/41/252923ad337d17e93c4e0f06497f41b6a135eb352d915d798c01bb1a9eb5/simplemdx-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "66741828f0e6889c486bab5dde89ac02", "sha256": "428222de3b42a030ce358ce06106e4b1ea215d6d881ba3bbe5e0ee868fbc28af" }, "downloads": -1, "filename": "simplemdx-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "66741828f0e6889c486bab5dde89ac02", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10094, "upload_time": "2018-03-05T02:21:19", "url": "https://files.pythonhosted.org/packages/35/b5/ba73e6fa171cf205dfe2219fe0701a83ad4701bb8b0a8c7daf2cf3aa3fd3/simplemdx-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23169aed6b75a599649bc91f5dae995f", "sha256": "7c1c58fdefc28a50665d9aefcf27e6afb98a719cfef324e6143e60b1b5608331" }, "downloads": -1, "filename": "simplemdx-0.1.4.tar.gz", "has_sig": false, "md5_digest": "23169aed6b75a599649bc91f5dae995f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7616512, "upload_time": "2018-03-05T02:21:21", "url": "https://files.pythonhosted.org/packages/4f/e0/6015d3c368e8916ec534045cc5076198671824cc71b696f85879e2d2a005/simplemdx-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "c7b93fb9ee27b3130610c3ddd81348cc", "sha256": "350e83e20651075e496516decda7472e645c389e1724c8a929da60d476576624" }, "downloads": -1, "filename": "simplemdx-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c7b93fb9ee27b3130610c3ddd81348cc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12252, "upload_time": "2018-03-05T16:14:55", "url": "https://files.pythonhosted.org/packages/20/bd/3f189c945b6804f2d24f409848c2af14ca9c051045761c5f8868b42fc470/simplemdx-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "31e3a1672aff5a394760d398b5b3557c", "sha256": "6769d64240d6a5ab66bd43f3c634c50e4b507c8e38857fff33d44b6f3488f60f" }, "downloads": -1, "filename": "simplemdx-0.1.5.tar.gz", "has_sig": false, "md5_digest": "31e3a1672aff5a394760d398b5b3557c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7619149, "upload_time": "2018-03-05T16:14:58", "url": "https://files.pythonhosted.org/packages/e9/82/0662f13b5c160dd669eb8191ef45e6b28665dd11a17b233143eadf941f7a/simplemdx-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "7690bbb727f9e29c826d41a20353e01e", "sha256": "16c1b3d28ecafa8c216e6f153a828bb1e582695307a51b06d8388824757b38fc" }, "downloads": -1, "filename": "simplemdx-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7690bbb727f9e29c826d41a20353e01e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12286, "upload_time": "2018-03-05T17:23:43", "url": "https://files.pythonhosted.org/packages/7c/c4/bf345ee700ec57daaa8faa2906cae622a15f902951092f24def6bf87d598/simplemdx-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c9389f7d139ded0b87cbbc6e016e239b", "sha256": "1fa6bf6382e35146209edb0c9a4407915e0f58c93cab960041d6eaab9ba693e6" }, "downloads": -1, "filename": "simplemdx-0.1.6.tar.gz", "has_sig": false, "md5_digest": "c9389f7d139ded0b87cbbc6e016e239b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7619205, "upload_time": "2018-03-05T17:23:45", "url": "https://files.pythonhosted.org/packages/a1/45/1b1d5a263cb9048a32b25d4e7cd0d85c3bc5095a0aec60bdf5e42ab36feb/simplemdx-0.1.6.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "93289d8b3ded9d135a61d5a9b1731d3c", "sha256": "dcc335545abff9de3df3f38dfd545e0c1b98a4be6fe4eea404283967db74f13e" }, "downloads": -1, "filename": "simplemdx-0.1.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "93289d8b3ded9d135a61d5a9b1731d3c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 30206, "upload_time": "2018-10-08T17:58:33", "url": "https://files.pythonhosted.org/packages/7c/43/433c6871469a095508485147ea3bceee4b997367bb126ea949ed6c16756e/simplemdx-0.1.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "973eb0069e43a1e74e4cccd0c9f2107b", "sha256": "02c6f1764e3147ca3860d97182220c80a192229f9694fe00a0fa689739f07a0a" }, "downloads": -1, "filename": "simplemdx-0.1.9.tar.gz", "has_sig": false, "md5_digest": "973eb0069e43a1e74e4cccd0c9f2107b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8626001, "upload_time": "2018-10-08T17:58:36", "url": "https://files.pythonhosted.org/packages/58/af/bd78f095728b5efdb6609fe2e4c60c2dbb14bd75b63234c7875c137847d6/simplemdx-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "75612896f477fa1e72cd5ff7e04e3ac4", "sha256": "4208a4f38fa6f9601413a1a5a19270d7488055c77169073175db03552384040e" }, "downloads": -1, "filename": "simplemdx-0.1.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "75612896f477fa1e72cd5ff7e04e3ac4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 30229, "upload_time": "2018-10-09T12:11:24", "url": "https://files.pythonhosted.org/packages/4d/9c/cad37b1229d2d7471b6a2adec03e50ee26e5255ad5ad8377a4e511dcc8c9/simplemdx-0.1.10-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f9750d552c420e7680c4d20260a1c57", "sha256": "c8b27c5e9bff0349ff9d66837b9221530f4bf4e38c3c6f8068ced64085a62cba" }, "downloads": -1, "filename": "simplemdx-0.1.10.tar.gz", "has_sig": false, "md5_digest": "7f9750d552c420e7680c4d20260a1c57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8626050, "upload_time": "2018-10-09T12:11:26", "url": "https://files.pythonhosted.org/packages/ed/97/a103beca42bac358115326cd584249ef1d986fb9b7d96d9702246b22b87d/simplemdx-0.1.10.tar.gz" } ] }