diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2022-05-17 23:20:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 23:20:44 +0200 |
commit | c7afe82e863eb91d122d34f1d34255c04e27b51f (patch) | |
tree | f482c9d2c383d80853973f4ff0ffb7e1816c72d1 /src/python/test/test_simplex_tree.py | |
parent | 91a95c2709d293c31e5dc64fd4f1b8d370513605 (diff) | |
parent | a3a265a20756c0ef9db9e4fba4c4fce8eb79fecb (diff) |
Merge pull request #586 from mglisse/collapse-pr2
Edge collapse rewrite
Diffstat (limited to 'src/python/test/test_simplex_tree.py')
-rwxr-xr-x | src/python/test/test_simplex_tree.py | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/python/test/test_simplex_tree.py b/src/python/test/test_simplex_tree.py index eb481a49..688f4fd6 100755 --- a/src/python/test/test_simplex_tree.py +++ b/src/python/test/test_simplex_tree.py @@ -8,7 +8,7 @@ - YYYY/MM Author: Description of the modification """ -from gudhi import SimplexTree, __GUDHI_USE_EIGEN3 +from gudhi import SimplexTree import numpy as np import pytest @@ -354,16 +354,11 @@ def test_collapse_edges(): assert st.num_simplices() == 10 - if __GUDHI_USE_EIGEN3: - st.collapse_edges() - assert st.num_simplices() == 9 - assert st.find([1, 3]) == False - for simplex in st.get_skeleton(0): - assert simplex[1] == 1. - else: - # If no Eigen3, collapse_edges throws an exception - with pytest.raises(RuntimeError): - st.collapse_edges() + st.collapse_edges() + assert st.num_simplices() == 9 + assert st.find([0, 2]) == False # [1, 3] would be fine as well + for simplex in st.get_skeleton(0): + assert simplex[1] == 1. def test_reset_filtration(): st = SimplexTree() |