summaryrefslogtreecommitdiff
path: root/test/test_ot.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_ot.py')
-rw-r--r--test/test_ot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_ot.py b/test/test_ot.py
index 245a107..47df946 100644
--- a/test/test_ot.py
+++ b/test/test_ot.py
@@ -338,9 +338,9 @@ def test_dual_variables():
np.testing.assert_almost_equal(cost1, log['cost'])
check_duality_gap(a, b, M, G, log['u'], log['v'], log['cost'])
- viol = log['u'][:, None] + log['v'][None, :] - M
+ constraint_violation = log['u'][:, None] + log['v'][None, :] - M
- assert viol.max() < 1e-8
+ assert constraint_violation.max() < 1e-8
def check_duality_gap(a, b, M, G, u, v, cost):