Skip to content

Commit

Permalink
Update nx_parallel/utils/chunk.py
Browse files Browse the repository at this point in the history
Co-authored-by: Aditi Juneja <[email protected]>
  • Loading branch information
dPys and Schefflera-Arboricola authored Oct 17, 2024
1 parent e02a009 commit 597804a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nx_parallel/utils/chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ def execute_parallel(
# read parallel_kwargs from thread-local storage
parallel_kwargs = getattr(_joblib_config, "parallel_kwargs", {})

return Parallel(n_jobs=n_jobs, **(parallel_kwargs or {}))(
return Parallel()(
delayed(process_func)(G, chunk, **kwargs) for chunk in data_chunks
)

0 comments on commit 597804a

Please sign in to comment.