summaryrefslogtreecommitdiff
path: root/src/python/example/alpha_complex_from_points_example.py
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-03-10 09:04:45 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-03-10 09:04:45 +0100
commitd1d25b4ae8d0f778f0e2b3f98449d7d13e466013 (patch)
treee78cee854bf5f17ea510b45153a0f2b2b9bb5953 /src/python/example/alpha_complex_from_points_example.py
parenta3ee5b54bc08cdcd150b82a62b4101eb676febac (diff)
Fix example - only fails on OSx
Diffstat (limited to 'src/python/example/alpha_complex_from_points_example.py')
-rwxr-xr-xsrc/python/example/alpha_complex_from_points_example.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/example/alpha_complex_from_points_example.py b/src/python/example/alpha_complex_from_points_example.py
index 465632eb..73faf17c 100755
--- a/src/python/example/alpha_complex_from_points_example.py
+++ b/src/python/example/alpha_complex_from_points_example.py
@@ -46,6 +46,9 @@ if simplex_tree.find([4]):
else:
print("[4] Not found...")
+# Some insertions, simplex_tree needs to initialize filtrations
+simplex_tree.initialize_filtration()
+
print("dimension=", simplex_tree.dimension())
print("filtrations=")
for simplex_with_filtration in simplex_tree.get_filtration():