diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2019-11-16 23:48:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-16 23:48:59 +0100 |
commit | da7a9e0eea4702f3b3d59a8770ef89ffa19ff345 (patch) | |
tree | d5892b3484bdce75b0631db934ffe39fc9601da3 /src/python/gudhi/cubical_complex.pyx | |
parent | 2ed1a86fa21d136cd7fe6fedbfc796799903038a (diff) | |
parent | c3414741af6ef98703ba9414803aff5a2d08777d (diff) |
Merge pull request #137 from mglisse/is_equal
Replace 'is' with == or similar.
Diffstat (limited to 'src/python/gudhi/cubical_complex.pyx')
-rw-r--r-- | src/python/gudhi/cubical_complex.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/gudhi/cubical_complex.pyx b/src/python/gudhi/cubical_complex.pyx index 0dc133d1..579c942b 100644 --- a/src/python/gudhi/cubical_complex.pyx +++ b/src/python/gudhi/cubical_complex.pyx @@ -66,9 +66,9 @@ cdef class CubicalComplex: # The real cython constructor def __cinit__(self, dimensions=None, top_dimensional_cells=None, perseus_file=''): - if (dimensions is not None) and (top_dimensional_cells is not None) and (perseus_file is ''): + if (dimensions is not None) and (top_dimensional_cells is not None) and (perseus_file == ''): self.thisptr = new Bitmap_cubical_complex_base_interface(dimensions, top_dimensional_cells) - elif (dimensions is None) and (top_dimensional_cells is None) and (perseus_file is not ''): + elif (dimensions is None) and (top_dimensional_cells is None) and (perseus_file != ''): if os.path.isfile(perseus_file): self.thisptr = new Bitmap_cubical_complex_base_interface(str.encode(perseus_file)) else: |