Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Oct 30, 2024
1 parent 272ec5d commit ce7dcbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adaptive_scheduler/_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _uuid_with_datetime() -> str:
return f"{datetime.datetime.now().strftime('%Y%m%d-%H%M%S')}-{uuid.uuid4().hex}" # noqa: DTZ005


class _ArgsSplatter:
class _SerializableFunctionSplatter:
def __init__(self, func: Callable[..., Any]) -> None:
self.func = func

Expand Down Expand Up @@ -372,7 +372,7 @@ def _to_learners(self) -> tuple[list[SequenceLearner], list[Path]]:
learners = []
fnames = []
for func, args_kwargs_list in self._sequences.items():
learner = SequenceLearner(_ArgsSplatter(func), args_kwargs_list)
learner = SequenceLearner(_SerializableFunctionSplatter(func), args_kwargs_list)
learners.append(learner)
assert isinstance(self.folder, Path)
name = func.__name__ if hasattr(func, "__name__") else ""
Expand Down

0 comments on commit ce7dcbc

Please sign in to comment.