summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2022-11-16 00:59:11 +0100
committerGitHub <noreply@github.com>2022-11-16 00:59:11 +0100
commit02b59e350fac3688b7dee24abe3c058739508aa5 (patch)
tree6d19742c15b3240eaeaef86170d142e13ceba247
parent19412d57d281acfd2d14efd15764e45da837b87a (diff)
Use float for max_filtration in test
Co-authored-by: Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com>
-rwxr-xr-xsrc/python/test/test_simplex_tree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/test/test_simplex_tree.py b/src/python/test/test_simplex_tree.py
index 59fd889a..2ccbfbf5 100755
--- a/src/python/test/test_simplex_tree.py
+++ b/src/python/test/test_simplex_tree.py
@@ -528,7 +528,7 @@ def test_simplex_tree_constructor_exception():
def test_create_from_array():
a = np.array([[1, 4, 13, 6], [4, 3, 11, 5], [13, 11, 10, 12], [6, 5, 12, 2]])
- st = SimplexTree.create_from_array(a, max_filtration=5)
+ st = SimplexTree.create_from_array(a, max_filtration=5.0)
assert list(st.get_filtration()) == [([0], 1.0), ([3], 2.0), ([1], 3.0), ([0, 1], 4.0), ([1, 3], 5.0)]