Just can just relax the relative tolerance to 2.0e-3 with a patch, I'll include in the next release.
Cheers, Nico On Mon, Dec 30, 2019 at 3:27 PM Graham Inggs <gin...@debian.org> wrote: > > Control: reopen -1 > > Hi Drew > > The test gets a little further [1], and now fails at: > > ___________________________________ 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] > > vol = sum(helpers.compute_volumes(mesh.points, mesh.cells["tetra"])) > ref = 2.725335e06 > > assert abs(vol - ref) < ref * 1.0e-3 > E assert 4425.526206357405 < (2725335.0 * 0.001) > E + where 4425.526206357405 = abs((2729760.5262063574 - 2725335.0)) > > test/test_inr.py:24: AssertionError > > Regards > Graham > > > [1] > https://ci.debian.net/data/autopkgtest/testing/arm64/p/pygalmesh/3810331/log.gz >