Skip to content

Commit

Permalink
fix: processes=len(db_list)
Browse files Browse the repository at this point in the history
  • Loading branch information
chungongyu committed Mar 22, 2024
1 parent b95382d commit f96199c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msa_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def run_command_fn(cmd_template, cmd_prefix, db_list, db_idx, **kwargs):
def run_command_mp(cmd_template, cmd_prefix, db_list, **kwargs):
command_fn = functools.partial(run_command_fn, cmd_template, cmd_prefix,
db_list, **kwargs)
with mp.Pool() as p:
with mp.Pool(processes=len(db_list)) as p:
yield from p.imap(command_fn, range(len(db_list)))


Expand Down

0 comments on commit f96199c

Please sign in to comment.