From f5c4bfa165bd4bf2fd96435b3e4adcbc61eba63f Mon Sep 17 00:00:00 2001 From: MaNyh <nyhuis@tfd.uni-hannover.de> Date: Sun, 29 May 2022 02:52:05 +0200 Subject: [PATCH] Revert "some inaccuracies are in this quickfix. this commit should be reviewed later" This reverts commit 24dbe2571eb4a48ddf63db0be5f2b4dd84a5104c. --- tests/test_ntrfc_geometry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_ntrfc_geometry.py b/tests/test_ntrfc_geometry.py index 1377a953..23582aba 100644 --- a/tests/test_ntrfc_geometry.py +++ b/tests/test_ntrfc_geometry.py @@ -144,7 +144,7 @@ def test_midline_from_sides(): length = mids.length testlength = vecAbs(sspoly.points[0] - sspoly.points[-1]) - assert np.isclose(length,testlength,rtol=1e-3), "midline not accurate" + assert length == testlength, "midline not accurate" def test_midLength(): @@ -167,7 +167,7 @@ def test_midLength(): fake_hk = mid circle = pv.PolyData(np.stack([x, y, np.zeros(len(x))]).T) length = mid_length(fake_vk, fake_hk, circle) - assert np.isclose(2 * radius, length, rtol=1e-3), "length should be two times the size of the defined test-circle" + assert np.isclose(2 * radius, length, rtol=1e-4), "length should be two times the size of the defined test-circle" def test_extractSidePolys(): -- GitLab