summaryrefslogtreecommitdiff
path: root/src/python/test/test_euclidean_witness_complex.py
diff options
context:
space:
mode:
authorVincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>2020-03-16 19:16:34 +0100
committerGitHub <noreply@github.com>2020-03-16 19:16:34 +0100
commitf40161072b8f74f68b0ff67b6ef2be7abebec950 (patch)
tree1b72b9bd381f52e578b1a8c889f288bbeb4d5efe /src/python/test/test_euclidean_witness_complex.py
parent592d58a95dbe5851c9f4ded9e8740c1e7a9c1502 (diff)
parent6ed2a97421a223b4ebe31b91f48d779c2209f470 (diff)
Merge pull request #211 from VincentRouvreau/iterator_over_simplex_tree
Iterator over simplex tree
Diffstat (limited to 'src/python/test/test_euclidean_witness_complex.py')
-rwxr-xr-xsrc/python/test/test_euclidean_witness_complex.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/python/test/test_euclidean_witness_complex.py b/src/python/test/test_euclidean_witness_complex.py
index c18d2484..f3664d39 100755
--- a/src/python/test/test_euclidean_witness_complex.py
+++ b/src/python/test/test_euclidean_witness_complex.py
@@ -40,7 +40,7 @@ def test_witness_complex():
assert landmarks[1] == euclidean_witness_complex.get_point(1)
assert landmarks[2] == euclidean_witness_complex.get_point(2)
- assert simplex_tree.get_filtration() == [
+ assert list(simplex_tree.get_filtration()) == [
([0], 0.0),
([1], 0.0),
([0, 1], 0.0),
@@ -78,13 +78,13 @@ def test_strong_witness_complex():
assert landmarks[1] == euclidean_strong_witness_complex.get_point(1)
assert landmarks[2] == euclidean_strong_witness_complex.get_point(2)
- assert simplex_tree.get_filtration() == [([0], 0.0), ([1], 0.0), ([2], 0.0)]
+ assert list(simplex_tree.get_filtration()) == [([0], 0.0), ([1], 0.0), ([2], 0.0)]
simplex_tree = euclidean_strong_witness_complex.create_simplex_tree(
max_alpha_square=100.0
)
- assert simplex_tree.get_filtration() == [
+ assert list(simplex_tree.get_filtration()) == [
([0], 0.0),
([1], 0.0),
([2], 0.0),