diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2021-03-24 15:27:11 +0100 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2021-03-24 15:27:11 +0100 |
commit | 77e577eb28ca7622553cd0527db76d46b473c445 (patch) | |
tree | 74c279ec1b90292a2df33dbe7a4dca0a6673af71 /src/python/example/plot_alpha_complex.py | |
parent | 0f19f5ecd180ac92458d5257696f1f367de54ca8 (diff) |
Remove read_weights and depreciate off_file
Diffstat (limited to 'src/python/example/plot_alpha_complex.py')
-rwxr-xr-x | src/python/example/plot_alpha_complex.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/python/example/plot_alpha_complex.py b/src/python/example/plot_alpha_complex.py index 99c18a7c..0924619b 100755 --- a/src/python/example/plot_alpha_complex.py +++ b/src/python/example/plot_alpha_complex.py @@ -1,8 +1,9 @@ #!/usr/bin/env python import numpy as np -import gudhi -ac = gudhi.AlphaComplex(off_file='../../data/points/tore3D_1307.off') +import gudhi as gd +points = gd.read_points_from_off_file(off_file = '../../data/points/tore3D_1307.off') +ac = gd.AlphaComplex(points = points) st = ac.create_simplex_tree() points = np.array([ac.get_point(i) for i in range(st.num_vertices())]) # We want to plot the alpha-complex with alpha=0.1. |