summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortlacombe <lacombe1993@gmail.com>2021-04-27 14:57:04 +0200
committertlacombe <lacombe1993@gmail.com>2021-04-27 14:57:04 +0200
commitb5fc64b23f8c92377a86111f75178abcc171050d (patch)
tree3695a79b12168fbee6be50717231fd5e1af3ad99
parentc1ab7c43d4797da93aa74ba823dd1a6b28fb2cfd (diff)
changed infty to inf in doc
-rw-r--r--src/python/gudhi/wasserstein/wasserstein.py6
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