summaryrefslogtreecommitdiff
path: root/src/cython/example
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-05-31 09:53:04 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-05-31 09:53:04 +0000
commit1e283611d2999003353e57f429bc9a0513fb0508 (patch)
treef8f66bb2a9ff04a67efc0329b0d1b64878031933 /src/cython/example
parent610b63a7ddd1d112f2b3e793498e7a31eeb76cd6 (diff)
Rename files using PEP8 recommendations
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_cythonize@1226 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 4fb27e76a494266c9f79f411c03633f68e2da525
Diffstat (limited to 'src/cython/example')
-rwxr-xr-xsrc/cython/example/Rips_complex_example.py15
-rwxr-xr-xsrc/cython/example/alpha_complex_example.py (renamed from src/cython/example/Alpha_complex_example.py)26
-rwxr-xr-xsrc/cython/example/mini_simplex_tree_example.py (renamed from src/cython/example/Mini_simplex_tree_example.py)26
-rwxr-xr-xsrc/cython/example/rips_complex_example.py41
-rwxr-xr-xsrc/cython/example/simplex_tree_example.py (renamed from src/cython/example/Simplex_tree_example.py)26
5 files changed, 119 insertions, 15 deletions
diff --git a/src/cython/example/Rips_complex_example.py b/src/cython/example/Rips_complex_example.py
deleted file mode 100755
index 6a39fc77..00000000
--- a/src/cython/example/Rips_complex_example.py
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env python
-
-import gudhi
-
-print("#####################################################################")
-print("RipsComplex creation from points")
-rips = gudhi.RipsComplex(points=[[0, 0], [1, 0], [0, 1], [1, 1]],
- max_dimension=1, max_edge_length=42)
-
-print("filtered_tree=", rips.get_filtered_tree())
-print("star([0])=", rips.get_star_tree([0]))
-print("coface([0], 1)=", rips.get_coface_tree([0], 1))
-
-print("persistence(2)=", rips.persistence(homology_coeff_field=2,
- min_persistence=0))
diff --git a/src/cython/example/Alpha_complex_example.py b/src/cython/example/alpha_complex_example.py
index a724b0c4..6996b692 100755
--- a/src/cython/example/Alpha_complex_example.py
+++ b/src/cython/example/alpha_complex_example.py
@@ -2,6 +2,32 @@
import gudhi
+"""This file is part of the Gudhi Library. The Gudhi library
+ (Geometric Understanding in Higher Dimensions) is a generic C++
+ library for computational topology.
+
+ Author(s): Vincent Rouvreau
+
+ Copyright (C) 2016 INRIA Saclay (France)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+"""
+
+__author__ = "Vincent Rouvreau"
+__copyright__ = "Copyright (C) 2016 INRIA Saclay (France)"
+__license__ = "GPL v3"
+
print("#####################################################################")
print("AlphaComplex creation from points")
alpha_complex = gudhi.AlphaComplex(points=[[0, 0], [1, 0], [0, 1], [1, 1]],
diff --git a/src/cython/example/Mini_simplex_tree_example.py b/src/cython/example/mini_simplex_tree_example.py
index 6cd5bf29..0461a1df 100755
--- a/src/cython/example/Mini_simplex_tree_example.py
+++ b/src/cython/example/mini_simplex_tree_example.py
@@ -2,6 +2,32 @@
import gudhi
+"""This file is part of the Gudhi Library. The Gudhi library
+ (Geometric Understanding in Higher Dimensions) is a generic C++
+ library for computational topology.
+
+ Author(s): Vincent Rouvreau
+
+ Copyright (C) 2016 INRIA Saclay (France)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+"""
+
+__author__ = "Vincent Rouvreau"
+__copyright__ = "Copyright (C) 2016 INRIA Saclay (France)"
+__license__ = "GPL v3"
+
print("#####################################################################")
print("MiniSimplexTree creation from insertion")
diff --git a/src/cython/example/rips_complex_example.py b/src/cython/example/rips_complex_example.py
new file mode 100755
index 00000000..eba3f298
--- /dev/null
+++ b/src/cython/example/rips_complex_example.py
@@ -0,0 +1,41 @@
+#!/usr/bin/env python
+
+import gudhi
+
+"""This file is part of the Gudhi Library. The Gudhi library
+ (Geometric Understanding in Higher Dimensions) is a generic C++
+ library for computational topology.
+
+ Author(s): Vincent Rouvreau
+
+ Copyright (C) 2016 INRIA Saclay (France)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+"""
+
+__author__ = "Vincent Rouvreau"
+__copyright__ = "Copyright (C) 2016 INRIA Saclay (France)"
+__license__ = "GPL v3"
+
+print("#####################################################################")
+print("RipsComplex creation from points")
+rips = gudhi.RipsComplex(points=[[0, 0], [1, 0], [0, 1], [1, 1]],
+ max_dimension=1, max_edge_length=42)
+
+print("filtered_tree=", rips.get_filtered_tree())
+print("star([0])=", rips.get_star_tree([0]))
+print("coface([0], 1)=", rips.get_coface_tree([0], 1))
+
+print("persistence(2)=", rips.persistence(homology_coeff_field=2,
+ min_persistence=0))
diff --git a/src/cython/example/Simplex_tree_example.py b/src/cython/example/simplex_tree_example.py
index e8585d83..bdaabca2 100755
--- a/src/cython/example/Simplex_tree_example.py
+++ b/src/cython/example/simplex_tree_example.py
@@ -4,6 +4,32 @@ import gudhi
st = gudhi.SimplexTree()
+"""This file is part of the Gudhi Library. The Gudhi library
+ (Geometric Understanding in Higher Dimensions) is a generic C++
+ library for computational topology.
+
+ Author(s): Vincent Rouvreau
+
+ Copyright (C) 2016 INRIA Saclay (France)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+"""
+
+__author__ = "Vincent Rouvreau"
+__copyright__ = "Copyright (C) 2016 INRIA Saclay (France)"
+__license__ = "GPL v3"
+
print("#####################################################################")
print("SimplexTree creation from insertion")
if st.insert([0, 1]):