summaryrefslogtreecommitdiff
path: root/ot/lp/cvx.py
diff options
context:
space:
mode:
authorGard Spreemann <gspr@nonempty.org>2023-06-14 16:52:13 +0200
committerGard Spreemann <gspr@nonempty.org>2023-06-14 16:52:13 +0200
commit2b51c7bfcf54d7e17ac7c2514f54408543cbe126 (patch)
treebaf00cc603ceabad00626259eec898e6747d016c /ot/lp/cvx.py
parenta49f648b0b07737f7ef315fb83d8f78871780281 (diff)
parent96788a3fe5601e4c3f49b592aa0d9c034247862e (diff)
Merge branch 'dfsg/latest'
Diffstat (limited to 'ot/lp/cvx.py')
-rw-r--r--ot/lp/cvx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot/lp/cvx.py b/ot/lp/cvx.py
index fbf3c0e..361ad0f 100644
--- a/ot/lp/cvx.py
+++ b/ot/lp/cvx.py
@@ -80,7 +80,7 @@ def barycenter(A, M, weights=None, verbose=False, log=False, solver='interior-po
if weights is None:
weights = np.ones(A.shape[1]) / A.shape[1]
else:
- assert(len(weights) == A.shape[1])
+ assert len(weights) == A.shape[1]
n_distributions = A.shape[1]
n = A.shape[0]