Skip to content
Snippets Groups Projects
Commit f5c4bfa1 authored by Malte Nyhuis's avatar Malte Nyhuis
Browse files

Revert "some inaccuracies are in this quickfix. this commit should be reviewed later"

This reverts commit 24dbe257.
parent 43bed4e7
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,7 @@ def test_midline_from_sides(): ...@@ -144,7 +144,7 @@ def test_midline_from_sides():
length = mids.length length = mids.length
testlength = vecAbs(sspoly.points[0] - sspoly.points[-1]) 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(): def test_midLength():
...@@ -167,7 +167,7 @@ def test_midLength(): ...@@ -167,7 +167,7 @@ def test_midLength():
fake_hk = mid fake_hk = mid
circle = pv.PolyData(np.stack([x, y, np.zeros(len(x))]).T) circle = pv.PolyData(np.stack([x, y, np.zeros(len(x))]).T)
length = mid_length(fake_vk, fake_hk, circle) 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(): def test_extractSidePolys():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment