diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2020-06-05 17:59:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 17:59:37 +0200 |
commit | a4598f043824db493369d3e78048139988bde9aa (patch) | |
tree | bd80f3726053e929b608d8f542cc94361fc47dfe /src | |
parent | a7decae3cdf47441cbd72c31e794176dbd3739c4 (diff) |
Update src/python/gudhi/alpha_complex.pyx
Co-authored-by: Marc Glisse <marc.glisse@inria.fr>
Diffstat (limited to 'src')
-rw-r--r-- | src/python/gudhi/alpha_complex.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/alpha_complex.pyx b/src/python/gudhi/alpha_complex.pyx index 5bc9ebc4..80e54da0 100644 --- a/src/python/gudhi/alpha_complex.pyx +++ b/src/python/gudhi/alpha_complex.pyx @@ -75,7 +75,7 @@ cdef class AlphaComplex: # The real cython constructor def __cinit__(self, points = None, off_file = '', complexity = 'safe'): - assert complexity == 'fast' or complexity == 'safe' or complexity == 'exact', "Alpha complex complexity can be 'fast', 'safe' or 'exact'" + assert complexity in ['fast', 'safe', 'exact'], "Alpha complex complexity can only be 'fast', 'safe' or 'exact'" self.fast = complexity == 'fast' self.exact = complexity == 'safe' |