{ "info": { "author": "ryanfeather", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "This is a simple library for reading and writing .tps files as created and used by the tpsDig landmarking tool\ncreated by F. James Rohlf. https://life.bio.sunysb.edu/morph/\n\nInstallation\n============\nThe primary way to install is from pip::\n\n pip install py_tps\n\nInstallation from source is managed via poetry. https://pypi.org/project/poetry/\nSource can be obtained from https://gitlab.com/ryan-feather/py_tps\n\nTo install, first install poetry.\n\n*Note for conda users*\n\nIn order to use a conda environment with poetry, you must first configure poetry to use your conda environment and\nnot create a new virtualenv environment. Example::\n\n poetry config settings.virtualenvs.path $CONDA_ENV_PATH\n poetry config settings.virtualenvs.create 0\n\nThen run::\n\n poetry install\n poetry build\n cd dist\n pip install *.whl\n\nUsage\n=====\n::\n\n from py_tps import TPSFile, TPSImage, TPSCurve, TPSPoints\n import numpy as np\n\n # construct and write\n # numpy is used for numeric data\n points = TPSPoints(np.asarray([[33,44],\n [44,45]]))\n curve = TPSCurve(points)\n image = TPSImage('T1.JPG', curves=[curve], id_number=0, comment=\"This is a test\", scale=0.0045)\n tps_file = TPSFile([image]) # can have many images, but here we do just one\n tps_file.write_to_file('TestFile.TPS')\n\nCreates a file with the contents::\n\n LM=0\n CURVES=1\n POINTS=2\n 33 44\n 44 45\n IMAGE=T1.JPG\n ID=0\n COMMENT=This is a test\n SCALE=0.0045\n\n\nNow to read::\n\n tps_file_in =TPSFile.read_file('TestFile.TPS')\n # now can access images list, and so on. Attributes have the same names as they do in the objects above.\n print(tps_file.images[0].image) # T1.JPG\n print(tps_file.images[0].curves[0].tps_points.points) # [[33,44],[44,45]]\n\nLandmarks can be set instead of or with curves. If we instead do::\n\n image = TPSImage('T1.JPG', landmarks=points, id_number=0, comment=\"This is a test\", scale=0.0045)\n\nIt creates the file with contents::\n\n LM=2\n 33 44\n 44 45\n IMAGE=T1.JPG\n ID=0\n COMMENT=This is a test\n SCALE=0.0045\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT", "maintainer": "ryanfeather", "maintainer_email": "", "name": "py-tps", "package_url": "https://pypi.org/project/py-tps/", "platform": "", "project_url": "https://pypi.org/project/py-tps/", "project_urls": null, "release_url": "https://pypi.org/project/py-tps/0.1.7/", "requires_dist": [ "numpy (>=1.14,<2.0)" ], "requires_python": ">=3.6,<4.0", "summary": "This is a simple library for reading and writing .tps files as created and used by the tpsDig landmarking tool created by F. James Rohlf. https://life.bio.sunysb.edu/morph/", "version": "0.1.7" }, "last_serial": 5491687, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4225ed012818b036adaa447a2334d4f9", "sha256": "a83e9f4665c0f68fdfe730483aafc09aaaf02a1785d7e01952cb37a794fbae78" }, "downloads": -1, "filename": "py_tps-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4225ed012818b036adaa447a2334d4f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 4394, "upload_time": "2019-07-04T19:10:10", "url": "https://files.pythonhosted.org/packages/52/d5/7bcf9885612c65247cb0c4970a8468e1136dee868a1b84340e0bb9ad6459/py_tps-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a6cf20d3a65066e289ad700b4d78626f", "sha256": "1c032a5385b3132fffd12c68b0759066e8ff631019b5534ccc4e2705eb4b605e" }, "downloads": -1, "filename": "py_tps-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a6cf20d3a65066e289ad700b4d78626f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 3987, "upload_time": "2019-07-04T19:10:12", "url": "https://files.pythonhosted.org/packages/ee/17/5e285cb29f79779972013bb5a1dba85694e3643026d17ceff2b1bd802a5f/py_tps-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ffd5fc23ff8efe8aa0edd8eaf899de3e", "sha256": "36f348a750d9fb0802bd2aa518d827c6743f5212bf9a8dc5cb3ee71421098176" }, "downloads": -1, "filename": "py_tps-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ffd5fc23ff8efe8aa0edd8eaf899de3e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 4792, "upload_time": "2019-07-04T19:17:30", "url": "https://files.pythonhosted.org/packages/6c/90/db75fe2a4a8d676f8d7e20100b89c85a433b3246367331f9bf796fa4c0f5/py_tps-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d6781c68506fc112b25d51ddf3e8e97", "sha256": "40048ba250643769e1445183a7f70e0115baf555dc18ad26f5a08daf07d21eda" }, "downloads": -1, "filename": "py_tps-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6d6781c68506fc112b25d51ddf3e8e97", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 4542, "upload_time": "2019-07-04T19:17:32", "url": "https://files.pythonhosted.org/packages/11/da/677411fbae3974183676e9b83dcdb0a6c22422d72b2073897b765f302596/py_tps-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "63d7006384689c1f40d779352e9a7fca", "sha256": "f11584a1a62296ed6d1e39ce72631a1d54a1db6120c9dba67d53f3b9f737f81d" }, "downloads": -1, "filename": "py_tps-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "63d7006384689c1f40d779352e9a7fca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 4859, "upload_time": "2019-07-04T19:21:08", "url": "https://files.pythonhosted.org/packages/1b/09/664e3e1df5e4afb29bd9d290553eb3898b1f0ac899d12ba8228532c42acc/py_tps-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "54307e4e2f487e3abead8f5fbcb8d2ab", "sha256": "07e74ec799f38076272032b008da0c4512683347f8f81f6680077e44b33c8687" }, "downloads": -1, "filename": "py_tps-0.1.2.tar.gz", "has_sig": false, "md5_digest": "54307e4e2f487e3abead8f5fbcb8d2ab", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 4622, "upload_time": "2019-07-04T19:21:10", "url": "https://files.pythonhosted.org/packages/3b/14/d321f6519def74efaaaef02b846b5a048105214cb1b0dc794a7272d764ce/py_tps-0.1.2.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "84882d2539b63ffeb62384c214ea396b", "sha256": "1ab3aebdaa23e2c447b725c24dbe1454e62389d7d2334d6f316eb77fcda35dec" }, "downloads": -1, "filename": "py_tps-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "84882d2539b63ffeb62384c214ea396b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 4860, "upload_time": "2019-07-04T19:24:24", "url": "https://files.pythonhosted.org/packages/90/e3/a36f20b3687fc24a8ba7ee7acc4181b54c64c0cfaec4d8b1b4065e54e3d5/py_tps-0.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba09f4fefffdf1bad3de40a3803cf347", "sha256": "e7ba7d0ab88459ae1819c3ed42ca8381c1f6686e9c2740cecc9014003effdd96" }, "downloads": -1, "filename": "py_tps-0.1.4.tar.gz", "has_sig": false, "md5_digest": "ba09f4fefffdf1bad3de40a3803cf347", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 4612, "upload_time": "2019-07-04T19:24:26", "url": "https://files.pythonhosted.org/packages/61/3f/43e188eb6111c83739649e4bb3f7fc4a8f17a6423947f7efb60fa11c2bcf/py_tps-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "8c0ba25ab3e243edaa27ae77762f731c", "sha256": "6528ca56c2ff23471f0bb0fef667a61be322ca3091e6d143ba2c3059a26c7eec" }, "downloads": -1, "filename": "py_tps-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "8c0ba25ab3e243edaa27ae77762f731c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 4859, "upload_time": "2019-07-04T19:25:14", "url": "https://files.pythonhosted.org/packages/65/0e/fba7fd4acb26a6db74d9373086f8588dd39c841c817f3051b98d198b6b62/py_tps-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5fcc32e38dc3e5192fae14708a1cc91", "sha256": "704f196dd1b16f774f5bba7bbee2350e05552f4a16d924241817c3083242db5c" }, "downloads": -1, "filename": "py_tps-0.1.5.tar.gz", "has_sig": false, "md5_digest": "e5fcc32e38dc3e5192fae14708a1cc91", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 4610, "upload_time": "2019-07-04T19:25:16", "url": "https://files.pythonhosted.org/packages/9c/59/722fc8271c2d613f4bf687b02e02568a46acc94fc7ebb77767578981cbeb/py_tps-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "bf8af8dcb0a9ddd878e459140c3bf502", "sha256": "b7806dc444a59c6d5cde51e76504ce3a2e99b634d3831eb1e8a036467361fb14" }, "downloads": -1, "filename": "py_tps-0.1.6-py3-none-any.whl", "has_sig": false, "md5_digest": "bf8af8dcb0a9ddd878e459140c3bf502", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 5170, "upload_time": "2019-07-05T13:46:40", "url": "https://files.pythonhosted.org/packages/40/c0/a35288b488b2905b55553394dfbd6d0a5861f6481287b4a6794b12e54ea8/py_tps-0.1.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3e8d3b686531d820d6b1e8935c1db50b", "sha256": "387552a2b43a1312743ae5f2a98e35ed4f5930e56939c5d74ecd286ec55ae0b1" }, "downloads": -1, "filename": "py_tps-0.1.6.tar.gz", "has_sig": false, "md5_digest": "3e8d3b686531d820d6b1e8935c1db50b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 4961, "upload_time": "2019-07-05T13:46:41", "url": "https://files.pythonhosted.org/packages/d7/5e/0b0bce4c19a8fae847b943ad545fb66e7254e320c1476c6626aaae0387f5/py_tps-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "a4b7d7d6d944b89aad57e3d07617838b", "sha256": "716dd74310f6130f18cba29862214927327c75a2032eb38e7c2a8fea44ef3a08" }, "downloads": -1, "filename": "py_tps-0.1.7-py3-none-any.whl", "has_sig": false, "md5_digest": "a4b7d7d6d944b89aad57e3d07617838b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 5425, "upload_time": "2019-07-05T14:06:22", "url": "https://files.pythonhosted.org/packages/12/52/4863140d697e8b97c3b664d99676f18229e0d152696b4fe605f4da8268d1/py_tps-0.1.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2f61dc6dc40b9630116d32073d2980f9", "sha256": "e12059b60608181b0efb83841b3717f2ffeb5edfefc519bce201bb1e76c5348c" }, "downloads": -1, "filename": "py_tps-0.1.7.tar.gz", "has_sig": false, "md5_digest": "2f61dc6dc40b9630116d32073d2980f9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 5342, "upload_time": "2019-07-05T14:06:24", "url": "https://files.pythonhosted.org/packages/6d/7b/6566b8e8a61e8608ada456f75efa8ce55d93aa41a17b13419e8af2833da5/py_tps-0.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a4b7d7d6d944b89aad57e3d07617838b", "sha256": "716dd74310f6130f18cba29862214927327c75a2032eb38e7c2a8fea44ef3a08" }, "downloads": -1, "filename": "py_tps-0.1.7-py3-none-any.whl", "has_sig": false, "md5_digest": "a4b7d7d6d944b89aad57e3d07617838b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 5425, "upload_time": "2019-07-05T14:06:22", "url": "https://files.pythonhosted.org/packages/12/52/4863140d697e8b97c3b664d99676f18229e0d152696b4fe605f4da8268d1/py_tps-0.1.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2f61dc6dc40b9630116d32073d2980f9", "sha256": "e12059b60608181b0efb83841b3717f2ffeb5edfefc519bce201bb1e76c5348c" }, "downloads": -1, "filename": "py_tps-0.1.7.tar.gz", "has_sig": false, "md5_digest": "2f61dc6dc40b9630116d32073d2980f9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 5342, "upload_time": "2019-07-05T14:06:24", "url": "https://files.pythonhosted.org/packages/6d/7b/6566b8e8a61e8608ada456f75efa8ce55d93aa41a17b13419e8af2833da5/py_tps-0.1.7.tar.gz" } ] }