Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/parallel' into parallel
Browse files Browse the repository at this point in the history
# Conflicts:
#	atomistics/shared/parallel.py
  • Loading branch information
jan-janssen committed Aug 31, 2024
2 parents cfece24 + a6f2984 commit 9e16491
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 @@ -50,7 +50,9 @@ 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:
"""
Executes the given `evaluate_function` in parallel using the provided `executor` and returns the results as a dictionary.
Expand All @@ -70,4 +72,4 @@ def evaluate_with_parallel_executor(evaluate_function: callable, task_dict: dict
]
return _convert_task_lst_to_task_dict(
task_lst=[future.result() for future in future_lst]
)
)

0 comments on commit 9e16491

Please sign in to comment.