summaryrefslogtreecommitdiff
path: root/ot/unbalanced.py
diff options
context:
space:
mode:
Diffstat (limited to 'ot/unbalanced.py')
-rw-r--r--ot/unbalanced.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot/unbalanced.py b/ot/unbalanced.py
index 90c920c..dd9a36e 100644
--- a/ot/unbalanced.py
+++ b/ot/unbalanced.py
@@ -734,7 +734,7 @@ def barycenter_unbalanced_stabilized(A, M, reg, reg_m, weights=None, tau=1e3,
if weights is None:
weights = nx.ones(n_hists, type_as=A) / n_hists
else:
- assert(len(weights) == A.shape[1])
+ assert len(weights) == A.shape[1]
if log:
log = {'err': []}
@@ -882,7 +882,7 @@ def barycenter_unbalanced_sinkhorn(A, M, reg, reg_m, weights=None,
if weights is None:
weights = nx.ones(n_hists, type_as=A) / n_hists
else:
- assert(len(weights) == A.shape[1])
+ assert len(weights) == A.shape[1]
if log:
log = {'err': []}