summaryrefslogtreecommitdiff
path: root/ot/lp/__init__.py
diff options
context:
space:
mode:
authorRĂ©mi Flamary <remi.flamary@gmail.com>2020-10-22 10:16:40 +0200
committerGitHub <noreply@github.com>2020-10-22 10:16:40 +0200
commit7adc1b1aa73c55dc07983ff08dcb23fd71e9e8b6 (patch)
tree701388c52a9accd727bb5b360897e0633b492f6a /ot/lp/__init__.py
parent55164e9272c9899ca413fca411d410ec28b736b0 (diff)
[MRG] Cleanup minimal build and add separate build for pep8 (#210)
* cleanup requiorement minimal * add pep8 build * cleanup sklearn * skip test if no sklearn * debug build yaml * comment error out in test (test sklearn) * maybe small stuff for better robustness : copy the sub-array * bump verison minimal build * update version strict requireent * update version strict requirement last change
Diffstat (limited to 'ot/lp/__init__.py')
-rw-r--r--ot/lp/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot/lp/__init__.py b/ot/lp/__init__.py
index 2a1b082..f08e020 100644
--- a/ot/lp/__init__.py
+++ b/ot/lp/__init__.py
@@ -426,7 +426,7 @@ def emd2(a, b, M, processes=multiprocessing.cpu_count(),
nb = b.shape[1]
if processes > 1:
- res = parmap(f, [b[:, i] for i in range(nb)], processes)
+ res = parmap(f, [b[:, i].copy() for i in range(nb)], processes)
else:
res = list(map(f, [b[:, i].copy() for i in range(nb)]))