Skip to content

Commit

Permalink
fix: revert only functional change from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dPys committed Oct 19, 2024
1 parent ef643a1 commit 8d3e8e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions nx_parallel/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ def __setstate__(self, state):
def assign_algorithms(cls):
"""Class decorator to assign algorithms to the class attributes."""
for attr in ALGORITHMS:
setattr(
cls, attr.rsplit(".", 1)[-1], staticmethod(attrgetter(attr)(algorithms))
)
func_name = attr.rsplit(".", 1)[-1]
setattr(cls, func_name, staticmethod(attrgetter(attr)(algorithms)))
return cls


Expand Down
2 changes: 1 addition & 1 deletion nx_parallel/utils/chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_n_jobs(n_jobs=None):
- If running under pytest, it returns 2 jobs when n_jobs is None.
- If the `active` configuration in NetworkX's config is `True`, `n_jobs`
is extracted from the NetworkX config.
is extracted from the NetworkX config.
- Otherwise, `n_jobs` is obtained from joblib's active backend.
- `ValueError` is raised if `n_jobs` is 0.
"""
Expand Down

0 comments on commit 8d3e8e0

Please sign in to comment.