Skip to content

Commit 2ba8d56

Browse files
committed
bugfix
1 parent bbc930b commit 2ba8d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/unbalanced-partial/plot_partial_1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def plot_partial_transport(
3434
if marginal_costs is not None:
3535
k = len(marginal_costs)
3636
ax.set_title(
37-
f"Partial Transport - k = {k}, Cumulative Cost = {marginal_costs.sum():.2f}"
37+
f"Partial Transport - k = {k}, Cumulative Cost = {sum(marginal_costs):.2f}"
3838
)
3939
else:
4040
ax.set_title("Original 1D Discrete Distributions")

0 commit comments

Comments
 (0)