Skip to content

Commit

Permalink
Merge branch 'release/0.12.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard committed May 12, 2014
2 parents 1fc9e89 + 8a2d30b commit 39d3b1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions gridmap/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ def _execute(job):
Used by _process_jobs_locally
"""
job.execute()
return job.ret


def _process_jobs_locally(jobs, max_processes=1):
Expand All @@ -663,8 +664,8 @@ def _process_jobs_locally(jobs, max_processes=1):
else:
pool = Pool(max_processes)
result = pool.map(_execute, jobs)
for ix, job in enumerate(jobs):
job.ret = result[ix]
for ret_val, job in zip(result, jobs):
job.ret = ret_val
pool.close()
pool.join()

Expand Down
2 changes: 1 addition & 1 deletion gridmap/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
:organization: ETS
'''

__version__ = '0.12.4'
__version__ = '0.12.5'
VERSION = tuple(int(x) for x in __version__.split('.'))

0 comments on commit 39d3b1b

Please sign in to comment.