Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 19, 2021
1 parent c58cf68 commit af4f54a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiida/schedulers/plugins/lsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def validate_resources(cls, **kwargs):
:raises ValueError: if the resources are invalid or incomplete
"""
from aiida.common.exceptions import ConfigurationError

resources = AttributeDict()

resources.parallel_env = kwargs.pop('parallel_env', '')
Expand All @@ -136,9 +136,9 @@ def validate_resources(cls, **kwargs):

if resources.tot_num_mpiprocs <= 0:
raise ValueError('tot_num_mpiprocs must be >= 1')

return resources

def __init__(self, **kwargs):
"""
Initialize the job resources from the passed arguments (the valid keys can be
Expand Down

0 comments on commit af4f54a

Please sign in to comment.