summaryrefslogtreecommitdiff
path: root/src/python/test/test_cubical_complex.py
diff options
context:
space:
mode:
authormathieu <mathieu.carriere3@gmail.com>2020-03-10 19:13:37 -0400
committermathieu <mathieu.carriere3@gmail.com>2020-03-10 19:13:37 -0400
commit5a737eefc7abd690e8a174d2557d0157e77f5f4c (patch)
tree3f486a990033b4acfc4d9f51ced87c604ad0811a /src/python/test/test_cubical_complex.py
parentfe754ca20cf942e2af186f14e5a3d24e23b6c80e (diff)
new fixes
Diffstat (limited to 'src/python/test/test_cubical_complex.py')
-rwxr-xr-xsrc/python/test/test_cubical_complex.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/python/test/test_cubical_complex.py b/src/python/test/test_cubical_complex.py
index 8c1b2600..8af63355 100755
--- a/src/python/test/test_cubical_complex.py
+++ b/src/python/test/test_cubical_complex.py
@@ -147,3 +147,8 @@ def test_connected_sublevel_sets():
periodic_dimensions = periodic_dimensions)
assert cub.persistence() == [(0, (2.0, float("inf")))]
assert cub.betti_numbers() == [1, 0, 0]
+
+def test_connected_sublevel_sets():
+ cub = CubicalComplex(top_dimensional_cells = [[0, 0, 0], [0, 1, 0], [0, 0, 0]])
+ cub.persistence()
+ assert cub.cofaces_of_persistence_pairs() == np.array([[1, 7, 4], [0, 8, -1]])