Skip to content

Commit

Permalink
Fix bad logic for calc_many.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Jul 25, 2023
1 parent 78fd258 commit 6b92e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matcalc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ def calc_many(self, structures: Sequence[Structure], n_jobs: None | int = None)
Returns:
Generator of dicts.
"""
parallel = Parallel(n_jobs=2, return_as="generator")
parallel = Parallel(n_jobs=n_jobs, return_as="generator")
return parallel(delayed(self.calc)(s) for s in structures)

0 comments on commit 6b92e06

Please sign in to comment.