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 31, 2024
1 parent d1c7ede commit a6f2984
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions atomistics/shared/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ def _convert_task_lst_to_task_dict(task_lst: list) -> dict:
return task_dict


def evaluate_with_parallel_executor(evaluate_function: callable, task_dict: dict, executor: Executor, **kwargs) -> dict:
def evaluate_with_parallel_executor(
evaluate_function: callable, task_dict: dict, executor: Executor, **kwargs
) -> dict:
future_lst = [
executor.submit(evaluate_function, task_dict=task, **kwargs)
for task in _convert_task_dict_to_task_lst(task_dict=task_dict)
]
return _convert_task_lst_to_task_dict(
task_lst=[future.result() for future in future_lst]
)
)

0 comments on commit a6f2984

Please sign in to comment.