From e433775c2015eb85c2683b6955618c2836f001bc Mon Sep 17 00:00:00 2001 From: Nathan Cassereau <84033440+ncassereau-idris@users.noreply.github.com> Date: Tue, 27 Sep 2022 15:17:53 +0200 Subject: [MRG] Crash when computing weightless Hamming distance & Doc build (#402) * Bug solve * Releases.md updated * pep8 * attempt to solve docs building bug * releases.md --- test/test_utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/test_utils.py b/test/test_utils.py index 3cfd295..19b6365 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -143,6 +143,7 @@ def test_dist(): for metric in metrics_w: print(metric) ot.dist(x, x, metric=metric, p=3, w=np.random.random((2, ))) + ot.dist(x, x, metric=metric, p=3, w=None) # check that not having any weight does not cause issues for metric in metrics: print(metric) ot.dist(x, x, metric=metric, p=3) -- cgit v1.2.3