diff options
Diffstat (limited to 'src/python/gudhi/wasserstein/wasserstein.py')
-rw-r--r-- | src/python/gudhi/wasserstein/wasserstein.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |