diff options
author | Gard Spreemann <gspr@nonempty.org> | 2020-02-07 18:02:58 +0100 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2020-02-07 18:02:58 +0100 |
commit | 1aafa5f62e1def8ab5ee9cffd4995107a371d053 (patch) | |
tree | 58f1e8b95d34a047504cc88afe6c72ad7b741070 /src/python/gudhi/alpha_complex.pyx | |
parent | 80b922bb6a4e951f8e9f0502bf8e248baee86732 (diff) | |
parent | 81816dae256a9f3c0653b1d21443c3c32da7a974 (diff) |
Merge branch 'dfsg/latest' into debian/sid
Diffstat (limited to 'src/python/gudhi/alpha_complex.pyx')
-rw-r--r-- | src/python/gudhi/alpha_complex.pyx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/python/gudhi/alpha_complex.pyx b/src/python/gudhi/alpha_complex.pyx index f3ca3dd5..fff3e920 100644 --- a/src/python/gudhi/alpha_complex.pyx +++ b/src/python/gudhi/alpha_complex.pyx @@ -24,11 +24,11 @@ __license__ = "GPL v3" cdef extern from "Alpha_complex_interface.h" namespace "Gudhi": cdef cppclass Alpha_complex_interface "Gudhi::alpha_complex::Alpha_complex_interface": - Alpha_complex_interface(vector[vector[double]] points) + Alpha_complex_interface(vector[vector[double]] points) except + # bool from_file is a workaround for cython to find the correct signature - Alpha_complex_interface(string off_file, bool from_file) - vector[double] get_point(int vertex) - void create_simplex_tree(Simplex_tree_interface_full_featured* simplex_tree, double max_alpha_square) + Alpha_complex_interface(string off_file, bool from_file) except + + vector[double] get_point(int vertex) except + + void create_simplex_tree(Simplex_tree_interface_full_featured* simplex_tree, double max_alpha_square) except + # AlphaComplex python interface cdef class AlphaComplex: @@ -96,8 +96,7 @@ cdef class AlphaComplex: :rtype: list of float :returns: the point. """ - cdef vector[double] point = self.thisptr.get_point(vertex) - return point + return self.thisptr.get_point(vertex) def create_simplex_tree(self, max_alpha_square = float('inf')): """ |