Skip to content

Commit 8cc04ef

Browse files
committed
Renamed variable in string
1 parent cd8c042 commit 8cc04ef

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

ot/lp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ def f(b):
201201
if len(b.shape) == 1:
202202
return f(b)
203203
nb = b.shape[1]
204-
# res = [emd2_c(a, b[:, i].copy(), M, numItermax) for i in range(nb)]
205204

206205
res = parmap(f, [b[:, i] for i in range(nb)], processes)
207206
return res

ot/lp/emd_wrap.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def check_result(result_code):
2929
elif result_code == UNBOUNDED:
3030
message = "Problem unbounded"
3131
elif result_code == MAX_ITER_REACHED:
32-
message = "numItermax reached before optimality. Try to increase numItermax."
32+
message = "max_iter reached before optimality. Try to increase max_iter."
3333
warnings.warn(message)
3434
return message
3535

test/test_ot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_warnings():
141141
warnings.simplefilter("always")
142142
print('Computing {} EMD '.format(1))
143143
ot.emd(a, b, M, max_iter=1)
144-
assert "numItermax" in str(w[-1].message)
144+
assert "max_iter" in str(w[-1].message)
145145
assert len(w) == 1
146146
a[0] = 100
147147
print('Computing {} EMD '.format(2))

0 commit comments

Comments
 (0)