summaryrefslogtreecommitdiff
path: root/test/test_gromov.py
diff options
context:
space:
mode:
authortvayer <titouan.vayer@gmail.com>2019-05-29 18:02:27 +0200
committertvayer <titouan.vayer@gmail.com>2019-05-29 18:02:27 +0200
commit89a2e0aee4353a051d924de0457f8976c26fa5d7 (patch)
tree88eb06509d8f41f1f75d2c2af61bc6a9c9fdafa1 /test/test_gromov.py
parent9bb7d40b563f42bf2875efca860bf0c579307161 (diff)
pep8 + err
Diffstat (limited to 'test/test_gromov.py')
-rw-r--r--test/test_gromov.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_gromov.py b/test/test_gromov.py
index b7ede95..f218b74 100644
--- a/test/test_gromov.py
+++ b/test/test_gromov.py
@@ -39,7 +39,7 @@ def test_gromov():
np.testing.assert_allclose(
q, G.sum(0), atol=1e-04) # cf convergence gromov
- Id = (1 / 1.0*n_samples) * np.eye(n_samples, n_samples)
+ Id = (1 / (1.0 * n_samples)) * np.eye(n_samples, n_samples)
np.testing.assert_allclose(
G, np.flipud(Id), atol=1e-04)
@@ -193,7 +193,7 @@ def test_fgw():
np.testing.assert_allclose(
q, G.sum(0), atol=1e-04) # cf convergence fgw
- Id = (1 / 1.0*n_samples) * np.eye(n_samples, n_samples)
+ Id = (1 / (1.0 * n_samples)) * np.eye(n_samples, n_samples)
np.testing.assert_allclose(
G, np.flipud(Id), atol=1e-04) # cf convergence gromov