Skip to content
Snippets Groups Projects
Commit 3ab84fec authored by Radek Hušek's avatar Radek Hušek Committed by Radek Hušek
Browse files

parmap: rename option inOrder to in_order

parent 62d5e6f1
No related branches found
No related tags found
No related merge requests found
......@@ -43,11 +43,11 @@ def worker_fun(f, q_in, q_out, multimap, chunksize):
def parmap(f, X, nprocs = None, chunksize = 1, chunks_in_flight = None,
inOrder = True, multimap = False, out_chunksize = None):
in_order = True, multimap = False, out_chunksize = None):
if nprocs is None:
nprocs = multiprocessing.cpu_count()
if inOrder:
if in_order:
out_chunksize = None
if out_chunksize is not None:
......@@ -87,7 +87,7 @@ def parmap(f, X, nprocs = None, chunksize = 1, chunks_in_flight = None,
running_workers -= 1
continue
if not inOrder:
if not in_order:
if out_chunksize is None:
cont.release()
if val is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment