Skip to content

Commit

Permalink
Merge pull request #3 from econ-ark/master
Browse files Browse the repository at this point in the history
update hark
  • Loading branch information
janrosa1 authored Aug 5, 2019
2 parents 0c13d6c + 1716665 commit d13c63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HARK/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def multiThreadCommands(agent_list,command_list,num_jobs=None):
num_jobs = min(len(agent_list),multiprocessing.cpu_count())

# Send each command in command_list to each of the types in agent_list to be run
agent_list_out = Parallel(backend='multiprocessing',n_jobs=num_jobs)(delayed(runCommands)(*args) for args in zip(agent_list, len(agent_list)*[command_list]))
agent_list_out = Parallel(n_jobs=num_jobs)(delayed(runCommands)(*args) for args in zip(agent_list, len(agent_list)*[command_list]))

# Replace the original types with the output from the parallel call
for j in range(len(agent_list)):
Expand Down

0 comments on commit d13c63e

Please sign in to comment.