Skip to content

Commit 8ffb061

Browse files
committed
lp.cvx now imports barycenter and gives a warnings.warning
1 parent 5c35d58 commit 8ffb061

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ot/lp/cvx.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
#
88
# License: MIT License
99

10-
print(
11-
"The module ot.lp.cvx is deprecated and will be removed in future versions. The function `barycenter` was moved to ot.lp._barycenter_solvers and can be importer via ot.lp."
10+
import warnings
11+
12+
13+
warnings.warn(
14+
"The module ot.lp.cvx is deprecated and will be removed in future versions."
15+
"The function `barycenter` was moved to ot.lp._barycenter_solvers and can"
16+
"be importer via ot.lp."
1217
)

0 commit comments

Comments
 (0)