diff options
author | Gard Spreemann <gspr@nonempty.org> | 2020-02-07 18:01:58 +0100 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2020-02-07 18:01:58 +0100 |
commit | 81816dae256a9f3c0653b1d21443c3c32da7a974 (patch) | |
tree | 744e6821d9d0f37ff91067a5556496335d353bb4 /src/python/gudhi/alpha_complex.pyx | |
parent | fb6e4ca215fc814e74873852f63af028abcc5c17 (diff) | |
parent | cbe3d0d2b16e19048928ae308851c4312cca42c8 (diff) |
Merge tag 'tags/gudhi-release-3.1.1' into dfsg/latest
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')): """ |