summaryrefslogtreecommitdiff
path: root/src/python/gudhi/euclidean_strong_witness_complex.pyx
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2020-01-17 15:37:17 +0100
committerGard Spreemann <gspr@nonempty.org>2020-01-17 15:37:17 +0100
commit9acc59fcc1d5001a212e7b9cd6f00a569a625882 (patch)
tree0f8c3a3c29a9fef6394394a9650198b348bff130 /src/python/gudhi/euclidean_strong_witness_complex.pyx
parent5ccee32ec2ba38743c6b96867db3e1b5151e45e4 (diff)
parentcabc43b34723efa7640313348b844eabe9971e38 (diff)
Merge tag 'tags/gudhi-release-3.1.0.rc1' into dfsg/latest
Diffstat (limited to 'src/python/gudhi/euclidean_strong_witness_complex.pyx')
-rw-r--r--src/python/gudhi/euclidean_strong_witness_complex.pyx21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/python/gudhi/euclidean_strong_witness_complex.pyx b/src/python/gudhi/euclidean_strong_witness_complex.pyx
index 5d6e4fb9..9889f92c 100644
--- a/src/python/gudhi/euclidean_strong_witness_complex.pyx
+++ b/src/python/gudhi/euclidean_strong_witness_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
@@ -6,16 +15,6 @@ from libc.stdint cimport intptr_t
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"
@@ -71,7 +70,7 @@ cdef class EuclideanStrongWitnessComplex:
"""
stree = SimplexTree()
cdef intptr_t stree_int_ptr=stree.thisptr
- if limit_dimension is not -1:
+ if limit_dimension != -1:
self.thisptr.create_simplex_tree(<Simplex_tree_interface_full_featured*>stree_int_ptr,
max_alpha_square, limit_dimension)
else: