summaryrefslogtreecommitdiff
path: root/src/python/gudhi/alpha_complex.pyx
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2021-03-22 16:25:58 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2021-03-22 16:25:58 +0100
commit0fc53e3b820130169a6a9ad2866cff6f1b4a64c6 (patch)
treec2608b7ff60c201c8ac2a01bd1e46c0894310480 /src/python/gudhi/alpha_complex.pyx
parentaf98f16e12ec9d1af7d925ecdc53b4daefea6ebe (diff)
Fix sphinx issues
Diffstat (limited to 'src/python/gudhi/alpha_complex.pyx')
-rw-r--r--src/python/gudhi/alpha_complex.pyx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/python/gudhi/alpha_complex.pyx b/src/python/gudhi/alpha_complex.pyx
index 681faebe..d4c4ba20 100644
--- a/src/python/gudhi/alpha_complex.pyx
+++ b/src/python/gudhi/alpha_complex.pyx
@@ -123,9 +123,8 @@ cdef class AlphaComplex:
cdef vector[double] wgts
pts = points
wgts = weights
- if len(weights) == 0:
- with nogil:
- self.this_ptr = new Alpha_complex_interface(pts, wgts, fast, exact)
+ with nogil:
+ self.this_ptr = new Alpha_complex_interface(pts, wgts, fast, exact)
def __dealloc__(self):
if self.this_ptr != NULL: