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
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment