summaryrefslogtreecommitdiff
path: root/src/python/gudhi/cubical_complex.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/gudhi/cubical_complex.pyx')
-rw-r--r--src/python/gudhi/cubical_complex.pyx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/python/gudhi/cubical_complex.pyx b/src/python/gudhi/cubical_complex.pyx
index 04569bd8..8e244bb8 100644
--- a/src/python/gudhi/cubical_complex.pyx
+++ b/src/python/gudhi/cubical_complex.pyx
@@ -283,7 +283,6 @@ cdef class CubicalComplex:
assert self.pcohptr != NULL, "compute_persistence() must be called before persistence_intervals_in_dimension()"
piid = np.array(self.pcohptr.intervals_in_dimension(dimension))
# Workaround https://github.com/GUDHI/gudhi-devel/issues/507
- if piid.shape[0] == 0:
+ if len(piid) == 0:
return np.empty(shape = [0, 2])
- else:
- return piid
+ return piid