Skip to content

Commit

Permalink
Fix - test model-api, Unpack tuble for thread.map
Browse files Browse the repository at this point in the history
  • Loading branch information
sambles committed Mar 23, 2018
1 parent cae3a2d commit cb713fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oasislmf/cmd/test.py
Expand Up @@ -145,12 +145,13 @@ def action(self, args):
# Prepare and run analyses
self.logger.info('Running {} analyses'.format(args.num_analyses))
counter = Counter()

threads = ThreadPool(processes=args.num_analyses)
threads.map(
self.run_analysis,
lambda args: self.run_analysis(*args),
((client, args.input_directory, args.output_directory, analysis_settings, do_il, counter) for i in range(args.num_analyses))
)

threads.close()
threads.join()

Expand Down

0 comments on commit cb713fd

Please sign in to comment.