Bug#951864: pygalmesh fails it's own autopkg tests
Nico Schlömer
nico.schloemer at gmail.com
Sat Feb 22 22:13:19 GMT 2020
The test tolerance has already been relaxed for Debian in the latest release.
On Sat, Feb 22, 2020 at 2:48 PM Matthias Klose <doko at debian.org> wrote:
>
> Package: src:pygalmesh
> Version: 0.5.0-4
> Severity: serious
> Tags: sid bullseye
>
> pygalmesh fails it's own autopkg tests:
>
> [...]
> autopkgtest [18:10:53]: test command1: pytest-3
> autopkgtest [18:10:53]: test command1: [-----------------------
> ============================= test session starts ==============================
> platform linux -- Python 3.7.6, pytest-4.6.9, py-1.8.1, pluggy-0.13.0
> rootdir: /tmp/autopkgtest-lxc.c4_o_0a3/downtmp/build.k44/src
> collected 26 items
>
> test/test_inr.py F [ 3%]
> test/test_periodic.py . [ 7%]
> test/test_surface_mesh.py . [ 11%]
> test/test_volume_from_surface.py . [ 15%]
> test/test_volume_mesh.py ...................... [100%]
>
> =================================== FAILURES ===================================
> ___________________________________ test_inr ___________________________________
>
> def test_inr():
> this_dir = os.path.dirname(os.path.abspath(__file__))
> mesh = pygalmesh.generate_from_inr(
> os.path.join(this_dir, "meshes", "skull_2.9.inr"), cell_size=5.0,
> verbose=False
> )
>
> tol = 2.0e-3
> ref = [2.031053e02, 3.739508e01, 2.425594e02, 2.558910e01, 2.300883e02,
> 1.775010e00]
> assert abs(max(mesh.points[:, 0]) - ref[0]) < tol * ref[0]
> assert abs(min(mesh.points[:, 0]) - ref[1]) < tol * ref[1]
> assert abs(max(mesh.points[:, 1]) - ref[2]) < tol * ref[2]
> assert abs(min(mesh.points[:, 1]) - ref[3]) < tol * ref[3]
> assert abs(max(mesh.points[:, 2]) - ref[4]) < tol * ref[4]
> > assert abs(min(mesh.points[:, 2]) - ref[5]) < tol * ref[5]
> E assert 0.0294994218444824 < (0.002 * 1.77501)
> E + where 0.0294994218444824 = abs((1.7455106 - 1.77501))
> E + where 1.7455106 = min(array([115.045494, 116.24661 , 122.3319 ,
> ..., 63.492596, 101.66734 ,\n 169.07079 ], dtype=float32))
>
> test/test_inr.py:20: AssertionError
> ===================== 1 failed, 25 passed in 28.42 seconds =====================
>
More information about the debian-science-maintainers
mailing list