summaryrefslogtreecommitdiff
path: root/src/python/test/test_alpha_complex.py
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-12-16 13:38:58 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2019-12-16 13:38:58 +0100
commit490a5774601e344bb732de5eab2a8cf6d5a7e81f (patch)
tree7ff84016cf32ff6fa2f3f9ce0c6543942a5a133f /src/python/test/test_alpha_complex.py
parent7b2ac5ccd53ec8988854e5ac2c3c20176e0c24ed (diff)
Rollback exact version mechanism
Diffstat (limited to 'src/python/test/test_alpha_complex.py')
-rwxr-xr-xsrc/python/test/test_alpha_complex.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/python/test/test_alpha_complex.py b/src/python/test/test_alpha_complex.py
index ab84daaa..9b27fff2 100755
--- a/src/python/test/test_alpha_complex.py
+++ b/src/python/test/test_alpha_complex.py
@@ -93,7 +93,7 @@ def test_filtered_alpha():
assert simplex_tree.get_star([0]) == [([0], 0.0), ([0, 1], 0.25), ([0, 2], 0.25)]
assert simplex_tree.get_cofaces([0], 1) == [([0, 1], 0.25), ([0, 2], 0.25)]
-def alpha_persistence_comparison(exact_version):
+def test_safe_alpha_persistence_comparison():
#generate periodic signal
time = np.arange(0, 10, 1)
signal = [math.sin(x) for x in time]
@@ -106,10 +106,10 @@ def alpha_persistence_comparison(exact_version):
#build alpha complex and simplex tree
alpha_complex1 = AlphaComplex(points=embedding1)
- simplex_tree1 = alpha_complex1.create_simplex_tree(exact_version = exact_version)
+ simplex_tree1 = alpha_complex1.create_simplex_tree()
alpha_complex2 = AlphaComplex(points=embedding2)
- simplex_tree2 = alpha_complex2.create_simplex_tree(exact_version = exact_version)
+ simplex_tree2 = alpha_complex2.create_simplex_tree()
diag1 = simplex_tree1.persistence()
diag2 = simplex_tree2.persistence()
@@ -117,9 +117,3 @@ def alpha_persistence_comparison(exact_version):
for (first_p, second_p) in itertools.zip_longest(diag1, diag2):
assert first_p[0] == pytest.approx(second_p[0])
assert first_p[1] == pytest.approx(second_p[1])
-
-def test_exact_alpha_version():
- alpha_persistence_comparison(exact_version = True)
-
-def test_safe_alpha_version():
- alpha_persistence_comparison(exact_version = False)