Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Radek Hušek
group-connectivity-pub
Commits
3ab84fec
Commit
3ab84fec
authored
Dec 13, 2015
by
Radek Hušek
Committed by
Radek Hušek
Nov 09, 2017
Browse files
parmap: rename option inOrder to in_order
parent
62d5e6f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
parmap.py
View file @
3ab84fec
...
...
@@ -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
,
in
O
rder
=
True
,
multimap
=
False
,
out_chunksize
=
None
):
in
_o
rder
=
True
,
multimap
=
False
,
out_chunksize
=
None
):
if
nprocs
is
None
:
nprocs
=
multiprocessing
.
cpu_count
()
if
in
O
rder
:
if
in
_o
rder
:
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
in
O
rder
:
if
not
in
_o
rder
:
if
out_chunksize
is
None
:
cont
.
release
()
if
val
is
None
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment