{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","python"],"comment":"Pytest plugin to help with comparing array output from tests","compare":null,"dependentCount":null,"description":"pytest-arraydiff is a py.test plugin to facilitate the generation and comparison\nof data arrays produced during tests, in particular in cases where the arrays\nare too large to conveniently hard-code them in the tests\n(e.g. np.testing.assert_allclose(x, [1, 2, 3])).\n\nThe basic idea is that you can write a test that generates a Numpy array (or\nother related objects depending on the format, e.g. pandas DataFrame). You can\nthen either run the tests in a mode to generate reference files from the arrays,\nor you can run the tests in comparison mode, which will compare the results of\nthe tests to the reference ones within some tolerance.\n\nAt the moment, the supported file formats for the reference files are:\n* A plain text-based format (based on Numpy loadtxt output)\n* The FITS format (requires astropy). With this format, tests can return either\n  a Numpy array for a FITS HDU object.\n* A pandas HDF5 format using the pandas HDFStore","flavors":[],"html":"https://daemonports.org/dragonfly/devel/py-pytest-arraydiff/","kind":"port","lastUpdate":null,"license":["BSD3CLAUSE"],"licenses":["BSD-3-Clause"],"maintainer":"yuri@FreeBSD.org","name":"py312-pytest-arraydiff","newest":true,"newestVersion":"0.7.0","noVulnData":false,"origin":"devel/py-pytest-arraydiff","otherSystems":[{"maintainer":"yuri@FreeBSD.org","newest":true,"origin":"devel/py-pytest-arraydiff","path":"/devel/py-pytest-arraydiff/","system":"FreeBSD","updated":"2026-08-07","version":"0.7.0"},{"maintainer":"yuri@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-pytest-arraydiff","path":"","system":"HardenedBSD","version":"0.7.0"},{"maintainer":"yuri@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/py-pytest-arraydiff","path":"","system":"GhostBSD","version":"0.7.0"}],"packages":null,"pkgName":"py312-pytest-arraydiff-0.7.0","related":null,"repository":"DPorts","requiredBy":["astro/py-pytest-astropy"],"requiredByCount":1,"runDepends":["devel/py-pytest","lang/python312","math/py-numpy"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"0.7.0","versions":[{"date":"2026-11-11","version":"0.7.0"}],"vulnerabilities":null,"www":"https://github.com/astropy/pytest-arraydiff"}
