summaryrefslogtreecommitdiff
path: root/src/python/gudhi/tangential_complex.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/gudhi/tangential_complex.pyx')
-rw-r--r--src/python/gudhi/tangential_complex.pyx27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/python/gudhi/tangential_complex.pyx b/src/python/gudhi/tangential_complex.pyx
index 3a945fe2..6391488c 100644
--- a/src/python/gudhi/tangential_complex.pyx
+++ b/src/python/gudhi/tangential_complex.pyx
@@ -1,3 +1,12 @@
+# This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
+# See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
+# Author(s): Vincent Rouvreau
+#
+# Copyright (C) 2016 Inria
+#
+# Modification(s):
+# - YYYY/MM Author: Description of the modification
+
from cython cimport numeric
from libcpp.vector cimport vector
from libcpp.utility cimport pair
@@ -9,16 +18,6 @@ import os
from gudhi.simplex_tree cimport *
from gudhi.simplex_tree import SimplexTree
-""" This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
- See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details.
- Author(s): Vincent Rouvreau
-
- Copyright (C) 2016 Inria
-
- Modification(s):
- - YYYY/MM Author: Description of the modification
-"""
-
__author__ = "Vincent Rouvreau"
__copyright__ = "Copyright (C) 2016 Inria"
__license__ = "GPL v3"
@@ -65,9 +64,9 @@ cdef class TangentialComplex:
# The real cython constructor
def __cinit__(self, intrisic_dim, points=None, off_file=''):
- if off_file is not '':
+ if off_file:
if os.path.isfile(off_file):
- self.thisptr = new Tangential_complex_interface(intrisic_dim, str.encode(off_file), True)
+ self.thisptr = new Tangential_complex_interface(intrisic_dim, off_file.encode('utf-8'), True)
else:
print("file " + off_file + " not found.")
else:
@@ -92,7 +91,7 @@ cdef class TangentialComplex:
Raises:
ValueError: In debug mode, if the computed star dimension is too
low. Try to set a bigger maximal edge length value with
- :func:`~gudhi.Tangential_complex.set_max_squared_edge_length`
+ :meth:`set_max_squared_edge_length`
if this happens.
"""
self.thisptr.compute_tangential_complex()
@@ -167,7 +166,7 @@ cdef class TangentialComplex:
:type max_squared_edge_length: double
If the maximal edge length value is too low
- :func:`~gudhi.Tangential_complex.compute_tangential_complex`
+ :meth:`compute_tangential_complex`
will throw an exception in debug mode.
"""
self.thisptr.set_max_squared_edge_length(max_squared_edge_length)