summaryrefslogtreecommitdiff
path: root/src/cython/example/Simplex_tree_example.py
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-05-25 09:42:09 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-05-25 09:42:09 +0000
commita232e35a50e02fc479509e8fda45c16da5032740 (patch)
treeab06ab95d32d2a0974003ac885073085fc563e07 /src/cython/example/Simplex_tree_example.py
parentd101d16e7ebc4614389bbbf162133b27207f2cf4 (diff)
PEP8 conformity
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_cythonize@1195 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 8d2e24e07694508853feb677e5fd2294a663a2d5
Diffstat (limited to 'src/cython/example/Simplex_tree_example.py')
-rwxr-xr-xsrc/cython/example/Simplex_tree_example.py27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/cython/example/Simplex_tree_example.py b/src/cython/example/Simplex_tree_example.py
index fa40fbe6..e8585d83 100755
--- a/src/cython/example/Simplex_tree_example.py
+++ b/src/cython/example/Simplex_tree_example.py
@@ -4,22 +4,22 @@ import gudhi
st = gudhi.SimplexTree()
-print("#######################################################################")
+print("#####################################################################")
print("SimplexTree creation from insertion")
-if st.insert([0,1]):
- print("Inserted !!")
+if st.insert([0, 1]):
+ print("Inserted !!")
else:
- print("Not inserted...")
+ print("Not inserted...")
-if st.find([0,1]):
- print("Found !!")
+if st.find([0, 1]):
+ print("Found !!")
else:
- print("Not found...")
+ print("Not found...")
-if st.insert([0,1,2], filtration=4.0):
- print("Inserted !!")
+if st.insert([0, 1, 2], filtration=4.0):
+ print("Inserted !!")
else:
- print("Not inserted...")
+ print("Not inserted...")
# FIXME: Remove this line
st.set_dimension(3)
@@ -28,8 +28,8 @@ print("dimension=", st.dimension())
st.set_filtration(4.0)
st.initialize_filtration()
print("filtration=", st.get_filtration())
-print("filtration[1,2]=", st.filtration([1,2]))
-print("filtration[4,2]=", st.filtration([4,2]))
+print("filtration[1, 2]=", st.filtration([1, 2]))
+print("filtration[4, 2]=", st.filtration([4, 2]))
print("num_simplices=", st.num_simplices())
print("num_vertices=", st.num_vertices())
@@ -38,4 +38,5 @@ print("skeleton_tree[2]=", st.get_skeleton_tree(2))
print("skeleton_tree[1]=", st.get_skeleton_tree(1))
print("skeleton_tree[0]=", st.get_skeleton_tree(0))
-print("persistence(2)=", st.persistence(2))
+print("persistence(2)=", st.persistence(homology_coeff_field=2,
+ min_persistence=0))