From 44085e15a0ce83d8139db7da276d656bd6381026 Mon Sep 17 00:00:00 2001 From: Théo Lacombe Date: Tue, 27 Apr 2021 09:55:13 +0200 Subject: Typo correction - Update src/python/gudhi/wasserstein/wasserstein.py Co-authored-by: Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> --- src/python/gudhi/wasserstein/wasserstein.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/python') diff --git a/src/python/gudhi/wasserstein/wasserstein.py b/src/python/gudhi/wasserstein/wasserstein.py index 8ccbe12e..926dec33 100644 --- a/src/python/gudhi/wasserstein/wasserstein.py +++ b/src/python/gudhi/wasserstein/wasserstein.py @@ -131,7 +131,7 @@ def _cost_and_match_essential_parts(X, Y, idX, idY, order, axis): :param Y: (n x 2) numpy.array (dgm points) :param idX: indices to consider for this one dimensional OT problem (in X) :param idY: indices to consider for this one dimensional OT problem (in Y) - :param order: exponent for Wasserstein distanc ecomputation + :param order: exponent for Wasserstein distance computation :param axis: must be 0 or 1, correspond to the coordinate which is finite. :returns: cost (float) and match for points with *one* infinite coordinate. -- cgit v1.2.3 From 29ffea359c52e2813c8e6887bda51874c36a56a5 Mon Sep 17 00:00:00 2001 From: Théo Lacombe Date: Tue, 27 Apr 2021 09:56:53 +0200 Subject: Typo - Update src/python/gudhi/wasserstein/wasserstein.py Co-authored-by: Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> --- src/python/gudhi/wasserstein/wasserstein.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/python') diff --git a/src/python/gudhi/wasserstein/wasserstein.py b/src/python/gudhi/wasserstein/wasserstein.py index 926dec33..90988512 100644 --- a/src/python/gudhi/wasserstein/wasserstein.py +++ b/src/python/gudhi/wasserstein/wasserstein.py @@ -267,7 +267,7 @@ def wasserstein_distance(X, Y, matching=False, order=1., internal_p=np.inf, enab # Check essential part and enable autodiff together if enable_autodiff and keep_essential_parts: warnings.warn('''enable_autodiff=True and keep_essential_parts=True are incompatible together. - keep_essential_parts is set to False: only points with finite coordiantes are considered + keep_essential_parts is set to False: only points with finite coordinates are considered in the following. ''') keep_essential_parts = False -- cgit v1.2.3