diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-01-28 11:05:39 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-01-28 11:05:39 +0100 |
commit | ef2c5b53e88321f07ad93496f00dde16dc20f018 (patch) | |
tree | 0a7c4d1d7f69a691259e98ceed1439421fb14f3e /src/python/example/alpha_complex_from_points_example.py | |
parent | 0b77fdd5d9bd057103cb23020089a6628c1f14e6 (diff) |
Code review: rename get_simplex_filtration with get_simplex_and_filtration. Remove exception raise. Fix failed tests. Reword documentation
Diffstat (limited to 'src/python/example/alpha_complex_from_points_example.py')
-rwxr-xr-x | src/python/example/alpha_complex_from_points_example.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/example/alpha_complex_from_points_example.py b/src/python/example/alpha_complex_from_points_example.py index 844d7a82..465632eb 100755 --- a/src/python/example/alpha_complex_from_points_example.py +++ b/src/python/example/alpha_complex_from_points_example.py @@ -47,7 +47,10 @@ else: print("[4] Not found...") print("dimension=", simplex_tree.dimension()) -print("filtrations=", simplex_tree.get_filtration()) +print("filtrations=") +for simplex_with_filtration in simplex_tree.get_filtration(): + print("(%s, %.2f)" % tuple(simplex_with_filtration)) + print("star([0])=", simplex_tree.get_star([0])) print("coface([0], 1)=", simplex_tree.get_cofaces([0], 1)) |