{ "info": { "author": "S\u00e9bastien Boisg\u00e9rault", "author_email": "Sebastien.Boisgerault@mines-paristech.fr", "bugtrack_url": null, "classifiers": [], "description": "Numtest\n=======\n\nNumtest is a `doctest `__\nextension that simplifies the test of numerical results.\n\nIt provides a new doctest directive ``NUMBER`` to use with numerical\ntests:\n\n::\n\n >>> import math\n >>> math.pi # doctest: +NUMBER\n 3.14\n\nTo enable it, import the module ``numtest`` before you run the tests.\n\nHow does it work ?\n------------------\n\nA major issue in numerical tests is the control of the precision of the\nresults.\n\nNumtest infers the precision that you want from the number of digits\nused in the expected result: the string ``\"3.14\"`` used in the above\nexample means that the best three-digit approximation of ``math.pi``\nshould be ``3.14``.\n\nFor example, a ``math`` module that would declare ``pi`` as any of the\nnumbers\n\n::\n\n 3.141592653589793, 3.14, 3\n\nwould pass the above test while the values\n\n::\n\n 100, 3, 3.1, 3.149\n\nwould fail the same test.\n\nAdditional Features\n-------------------\n\nNumtest supports comparison of list of numbers and\n`NumPy `__ arrays. For example, the test below\npasses:\n\n::\n\n >>> import numpy\n >>> x = numpy.linspace(0.0, 1.0, 4)\n >>> x # doctest: +NUMBER\n [0.00, 0.333, 0.667, 1.00]\n\nOnly the shape and values of lists or arrays are tested: lists may be\nsuccessfully compared to arrays, arrays of integers with arrays of\nfloats, etc.\n\nGotchas\n-------\n\nBe aware that NumPy displays arrays with only a 8-digits precision by\ndefault. Hence the test below would fail:\n\n::\n\n >>> x # doctest: +NUMBER\n [0.00, 0.333333333333, 0.667, 1.00]\n\nHowever, the `display precision used by NumPy is\nconfigurable `__.\nThe prior invocation of\n\n::\n\n >>> numpy.set_printoptions(precision=17)\n\nwill make the test pass as expected.", "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/boisgera/numtest", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "numtest", "package_url": "https://pypi.org/project/numtest/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/numtest/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/boisgera/numtest" }, "release_url": "https://pypi.org/project/numtest/2.0.6/", "requires_dist": null, "requires_python": null, "summary": "Numeric Doctest", "version": "2.0.6" }, "last_serial": 2333596, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "1e0b4df7a725b21ada147e1dd8904194", "sha256": "8c4811f47d9f906561bce66ee6309c73a3ee6a7b55f2020687f24469823d1979" }, "downloads": -1, "filename": "numtest-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1e0b4df7a725b21ada147e1dd8904194", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1941, "upload_time": "2012-12-14T21:03:49", "url": "https://files.pythonhosted.org/packages/19/c4/a761b6fdcb59d487aab5193fbf748b171e320cb0c88a88f1892db852af90/numtest-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "63925473fade87927789d44b10c670bd", "sha256": "cb04fec0b15d2960fb4b2578d8a9cc3e2f19ffedc290156634a311862013c235" }, "downloads": -1, "filename": "numtest-1.0.1.tar.gz", "has_sig": false, "md5_digest": "63925473fade87927789d44b10c670bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2338, "upload_time": "2012-12-28T15:26:14", "url": "https://files.pythonhosted.org/packages/13/ad/e0f04db432f788e80612d23baaea5931f43eb97a7a29eec45e166c901c13/numtest-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "c3de3b1da619168ec772868df930507c", "sha256": "7d55bc3bf36e2d40860d5bc7a0fa7383e23538ff52441080485cba2a4ffb1ecd" }, "downloads": -1, "filename": "numtest-1.0.2.tar.gz", "has_sig": false, "md5_digest": "c3de3b1da619168ec772868df930507c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2392, "upload_time": "2012-12-28T23:51:18", "url": "https://files.pythonhosted.org/packages/a1/25/d32660d5dd8615f6f5b5b3ee2a9ca02945688aebfd84b551e8433465e8c8/numtest-1.0.2.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "6d55ce6adc6b3959522ecb3788743c7d", "sha256": "6e96556617296965aa13f7696cd66ea15bb6f307b39d1f29899b7b53a81a33e4" }, "downloads": -1, "filename": "numtest-1.1.1.tar.gz", "has_sig": false, "md5_digest": "6d55ce6adc6b3959522ecb3788743c7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2782, "upload_time": "2012-12-29T22:01:23", "url": "https://files.pythonhosted.org/packages/6d/54/7206ef40637c646e656e47572d60c8350c70ca6dcfe0549bb6ac20b2c2a3/numtest-1.1.1.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "a23163935586bcd2a259f25ec92dd892", "sha256": "075a3ac3204fd1b5fbf535b91aef894edd2c0f15ebb54d3decf0fe7b196bbc46" }, "downloads": -1, "filename": "numtest-1.2.1.tar.gz", "has_sig": false, "md5_digest": "a23163935586bcd2a259f25ec92dd892", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2816, "upload_time": "2014-02-14T18:54:47", "url": "https://files.pythonhosted.org/packages/f3/b9/937d8e2e72e295e897401e3a1b350c5ae0dcce0251981bc79acd91e03674/numtest-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "dc3c3f009007fcac6110b01461afcdf3", "sha256": "2e757b07bc9492038f39efceadc7b271610d83d2b121f0392cd55861f16d0471" }, "downloads": -1, "filename": "numtest-1.2.2.tar.gz", "has_sig": false, "md5_digest": "dc3c3f009007fcac6110b01461afcdf3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2873, "upload_time": "2014-02-15T14:23:17", "url": "https://files.pythonhosted.org/packages/3f/4e/5f8e5f5520a0a0e96b8f9062d35a249b299eff679b13c39b2f8808964451/numtest-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "a59acdfa74720da2ef78b018361c0afd", "sha256": "d117579dd3361eb874c6647a12534779263d49a96fce62017a6dcbf1f06d2cc2" }, "downloads": -1, "filename": "numtest-1.2.3.tar.gz", "has_sig": false, "md5_digest": "a59acdfa74720da2ef78b018361c0afd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2857, "upload_time": "2014-03-19T14:15:23", "url": "https://files.pythonhosted.org/packages/ca/20/b259b227f2bbea6c4ac6e52f1eec6ea8b7697bcd6baaeddd9eb0430ec05c/numtest-1.2.3.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "73d6f5cd3d0c0b86c955394139f1220a", "sha256": "fef93cc34cf8a55b85b26cc1e25a6dce30651b19c1d176d255ef8e34866c5caa" }, "downloads": -1, "filename": "numtest-1.3.0.tar.gz", "has_sig": false, "md5_digest": "73d6f5cd3d0c0b86c955394139f1220a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2959, "upload_time": "2014-03-19T15:10:27", "url": "https://files.pythonhosted.org/packages/c5/fd/0d27eaf9e7d84b9274568c23c0c4eb0766dcafac326fe843558a458f5cc0/numtest-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "02121321c0318d5028b01cd1a68e929f", "sha256": "8c2d6b60ff9bd498b8be61e7e239d7e2356204f8a095537d6e0159c1008b48c7" }, "downloads": -1, "filename": "numtest-1.3.1.tar.gz", "has_sig": false, "md5_digest": "02121321c0318d5028b01cd1a68e929f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 774848, "upload_time": "2014-11-13T23:09:56", "url": "https://files.pythonhosted.org/packages/5b/5d/e6aeeff53780b3fdd69b10a9119b4ec72acf7c54f5f006d827e7ca493fbb/numtest-1.3.1.tar.gz" } ], "2.0.0": [], "2.0.1": [ { "comment_text": "", "digests": { "md5": "42bd643275a220c0d2c92f2fef9b8484", "sha256": "c4e1bb5880da722fde0bc5ba409c44d1c67162b654f83a7f07f346f140d2e0bd" }, "downloads": -1, "filename": "numtest-2.0.1.tar.gz", "has_sig": false, "md5_digest": "42bd643275a220c0d2c92f2fef9b8484", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1033751, "upload_time": "2016-06-15T13:53:05", "url": "https://files.pythonhosted.org/packages/37/dc/5fb372a5c39759ec3563b4e48ab28e23fe6af87cd436cd65b643d9558b7d/numtest-2.0.1.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "400bdf448a0ce1339156fb761602e733", "sha256": "df3b37b663d4bf6266f783e9b0c3b07ff6eda027f7535f8516935357887281c1" }, "downloads": -1, "filename": "numtest-2.0.3.tar.gz", "has_sig": false, "md5_digest": "400bdf448a0ce1339156fb761602e733", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 431494, "upload_time": "2016-07-04T07:40:38", "url": "https://files.pythonhosted.org/packages/6c/bf/833dd70d5f62d5c65e321ec51ac4d862a961a431cf1922442ac8bb26b864/numtest-2.0.3.tar.gz" } ], "2.0.4": [ { "comment_text": "", "digests": { "md5": "36b1e6008d729f9f5e36c71f18fb36f1", "sha256": "2f344763d2769b0dbce74ca75a25a566764531d41a04b8b6a9abae69cb8c5c62" }, "downloads": -1, "filename": "numtest-2.0.4.tar.gz", "has_sig": false, "md5_digest": "36b1e6008d729f9f5e36c71f18fb36f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 431563, "upload_time": "2016-09-09T13:28:19", "url": "https://files.pythonhosted.org/packages/37/e8/24aeac627b2e6968162dd160f9cdc2883399b5d40390af96e23aa5041a14/numtest-2.0.4.tar.gz" } ], "2.0.5": [ { "comment_text": "", "digests": { "md5": "254a2e419bc3742fa8ae43690cde4115", "sha256": "94a810d2424f69e2884c2451811782b015de03611b659a9a389ffa80492b47a5" }, "downloads": -1, "filename": "numtest-2.0.5.tar.gz", "has_sig": false, "md5_digest": "254a2e419bc3742fa8ae43690cde4115", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 431549, "upload_time": "2016-09-09T13:29:58", "url": "https://files.pythonhosted.org/packages/50/23/db45a9e7b1339ada6b4f160c4021407621483c6e732fddc3865acd9de485/numtest-2.0.5.tar.gz" } ], "2.0.6": [ { "comment_text": "", "digests": { "md5": "18eaab9f0cdc5965b7b4d5965cfc252b", "sha256": "31da8011f07cba4763a1db5bb456f9101322ab2ae93da6b6fb3b9639b766a6aa" }, "downloads": -1, "filename": "numtest-2.0.6.tar.gz", "has_sig": false, "md5_digest": "18eaab9f0cdc5965b7b4d5965cfc252b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 431559, "upload_time": "2016-09-09T13:48:49", "url": "https://files.pythonhosted.org/packages/8d/59/295a69caa984ba4b0056fbedf453389a9fa0f69d84c1315905b3e8c1ced5/numtest-2.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "18eaab9f0cdc5965b7b4d5965cfc252b", "sha256": "31da8011f07cba4763a1db5bb456f9101322ab2ae93da6b6fb3b9639b766a6aa" }, "downloads": -1, "filename": "numtest-2.0.6.tar.gz", "has_sig": false, "md5_digest": "18eaab9f0cdc5965b7b4d5965cfc252b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 431559, "upload_time": "2016-09-09T13:48:49", "url": "https://files.pythonhosted.org/packages/8d/59/295a69caa984ba4b0056fbedf453389a9fa0f69d84c1315905b3e8c1ced5/numtest-2.0.6.tar.gz" } ] }