diff options
author | Gard Spreemann <gspr@nonempty.org> | 2023-06-14 16:52:13 +0200 |
---|---|---|
committer | Gard Spreemann <gspr@nonempty.org> | 2023-06-14 16:52:13 +0200 |
commit | 2b51c7bfcf54d7e17ac7c2514f54408543cbe126 (patch) | |
tree | baf00cc603ceabad00626259eec898e6747d016c /ot/lp/cvx.py | |
parent | a49f648b0b07737f7ef315fb83d8f78871780281 (diff) | |
parent | 96788a3fe5601e4c3f49b592aa0d9c034247862e (diff) |
Merge branch 'dfsg/latest'
Diffstat (limited to 'ot/lp/cvx.py')
-rw-r--r-- | ot/lp/cvx.py | 2 |
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] |