summaryrefslogtreecommitdiff
path: root/src/python/gudhi/simplex_tree.pyx
diff options
context:
space:
mode:
authorVincent Rouvreau <vincent.rouvreau@inria.fr>2022-03-21 17:47:59 +0100
committerVincent Rouvreau <vincent.rouvreau@inria.fr>2022-03-21 17:47:59 +0100
commit17dc48527dcc8ee7e5eab95f9fdde3e236f4ad47 (patch)
treeeac09d9815c037f06146bb5c76c8b34487e35cda /src/python/gudhi/simplex_tree.pyx
parentbbff86f1218fc7bc9976353901aa94cfa54792f6 (diff)
extended_persistence uses directly get_persistent_pairs
Diffstat (limited to 'src/python/gudhi/simplex_tree.pyx')
-rw-r--r--src/python/gudhi/simplex_tree.pyx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/python/gudhi/simplex_tree.pyx b/src/python/gudhi/simplex_tree.pyx
index b8fabf78..1bbf1539 100644
--- a/src/python/gudhi/simplex_tree.pyx
+++ b/src/python/gudhi/simplex_tree.pyx
@@ -471,8 +471,7 @@ cdef class SimplexTree:
del self.pcohptr
self.pcohptr = new Simplex_tree_persistence_interface(self.get_ptr(), False)
self.pcohptr.compute_persistence(homology_coeff_field, -1.)
- persistence_result = self.pcohptr.get_persistence()
- return self.get_ptr().compute_extended_persistence_subdiagrams(persistence_result, min_persistence)
+ return self.pcohptr.compute_extended_persistence_subdiagrams(min_persistence)
def persistence(self, homology_coeff_field=11, min_persistence=0, persistence_dim_max = False):