[testing] Increase tolerance for angles

This commit is contained in:
Matthias Hochsteger 2019-10-31 16:51:13 +01:00
parent 9ebc6b00f3
commit 96a9141199

View File

@ -41,8 +41,8 @@ def checkData(mesh, mp, ref):
assert ref['ne3d'] == data['ne3d'] assert ref['ne3d'] == data['ne3d']
assert json.loads(ref['quality_histogram']) == pytest.approx(json.loads(data['quality_histogram']), abs=1, rel=0.4) assert json.loads(ref['quality_histogram']) == pytest.approx(json.loads(data['quality_histogram']), abs=1, rel=0.4)
assert ref['total_badness'] == pytest.approx(data['total_badness'], rel=1e-5) assert ref['total_badness'] == pytest.approx(data['total_badness'], rel=1e-5)
assert ref['angles_trig'] == pytest.approx(data['angles_trig'], rel=1e-5) assert ref['angles_trig'] == pytest.approx(data['angles_trig'], rel=1e-4)
assert ref['angles_tet'] == pytest.approx(data['angles_tet'], rel=1e-5) assert ref['angles_tet'] == pytest.approx(data['angles_tet'], rel=1e-4)
# get tutorials # get tutorials
def getFiles(fileEnding): def getFiles(fileEnding):