Skip to content

Commit 1ba2c83

Browse files
committed
Renamed variables
1 parent 85c56d9 commit 1ba2c83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ot/lp/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ def emd(a, b, M, num_iter_max=100000, log=False):
9595
b = np.ones((M.shape[1],), dtype=np.float64) / M.shape[1]
9696

9797
G, cost, u, v, result_code = emd_c(a, b, M, num_iter_max)
98-
resultCodeString = check_result(result_code)
98+
result_code_string = check_result(result_code)
9999
if log:
100100
log = {}
101101
log['cost'] = cost
102102
log['u'] = u
103103
log['v'] = v
104-
log['warning'] = resultCodeString
104+
log['warning'] = result_code_string
105105
log['result_code'] = result_code
106106
return G, log
107107
return G
@@ -184,12 +184,12 @@ def emd2(a, b, M, processes=multiprocessing.cpu_count(), num_iter_max=100000, lo
184184
if log:
185185
def f(b):
186186
G, cost, u, v, resultCode = emd_c(a, b, M, num_iter_max)
187-
resultCodeString = check_result(resultCode)
187+
result_code_string = check_result(resultCode)
188188
log = {}
189189
log['G'] = G
190190
log['u'] = u
191191
log['v'] = v
192-
log['warning'] = resultCodeString
192+
log['warning'] = result_code_string
193193
log['result_code'] = resultCode
194194
return [cost, log]
195195
else:

0 commit comments

Comments
 (0)