atomistics.shared.parallel.evaluate_with_parallel_executor#
- atomistics.shared.parallel.evaluate_with_parallel_executor(evaluate_function: Callable[[...], dict], task_dict: dict, executor: Executor, **kwargs) → dict[source]#
Executes the given evaluate_function in parallel using the provided executor and returns the results as a dictionary.
- Parameters:
evaluate_function (callable) – The function to be executed in parallel.
task_dict (dict) – A dictionary containing the tasks to be executed.
executor (Executor) – The executor to be used for parallel execution.
**kwargs – Additional keyword arguments to be passed to the evaluate_function.
- Returns:
A dictionary containing the results of the parallel execution.
- Return type:
dict