From b5fc64b23f8c92377a86111f75178abcc171050d Mon Sep 17 00:00:00 2001 From: tlacombe Date: Tue, 27 Apr 2021 14:57:04 +0200 Subject: changed infty to inf in doc --- src/python/gudhi/wasserstein/wasserstein.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/python') diff --git a/src/python/gudhi/wasserstein/wasserstein.py b/src/python/gudhi/wasserstein/wasserstein.py index 5095e672..61505d03 100644 --- a/src/python/gudhi/wasserstein/wasserstein.py +++ b/src/python/gudhi/wasserstein/wasserstein.py @@ -83,7 +83,7 @@ def _perstot(X, order, internal_p, enable_autodiff): :returns: float, the total persistence of the diagram (that is, its distance to the empty diagram). .. note:: - Can be +infty if the diagram has an essential part (points with infinite coordinates). + Can be +inf if the diagram has an essential part (points with infinite coordinates). ''' if enable_autodiff: import eagerpy as ep @@ -203,10 +203,10 @@ def _warn_infty(matching): `matching=True`) about the returned matching being `None`. ''' if matching: - warnings.warn('Cardinality of essential parts differs. Distance (cost) is +infty, and the returned matching is None.') + warnings.warn('Cardinality of essential parts differs. Distance (cost) is +inf, and the returned matching is None.') return np.inf, None else: - warnings.warn('Cardinality of essential parts differs. Distance (cost) is +infty.') + warnings.warn('Cardinality of essential parts differs. Distance (cost) is +inf.') return np.inf -- cgit v1.2.3