Skip to content

Commit a5a3678

Browse files
committed
Remove redundant argument
1 parent 754aadc commit a5a3678

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/anemoi/inference/runner.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -976,15 +976,10 @@ def patch_data_request(self, request: Any) -> Any:
976976

977977
return request
978978

979-
def _configure_parallel_runner(self, parallel_runner: "ParallelRunnerMixin") -> None:
979+
def _configure_parallel_runner(self: "ParallelRunnerMixin") -> None:
980980
"""Configure the parallel runner (only applies when using the `parallel` runner).
981981
982982
This method is called by the parallel runner on initialisation.
983-
Derived classes can implement this method to modify the parallel runner if needed.
984-
985-
Parameters
986-
----------
987-
parallel_runner : ParallelRunner | ParallelRunnerMixin
988-
The parallel runner to configure.
983+
Derived classes can implement this method to modify itself for parallel operation.
989984
"""
990985
pass

src/anemoi/inference/runners/parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self, config: Any, pid: int = 0, **kwargs) -> None:
9898
self.pid = pid
9999

100100
# give the base class an opportunity to modify the parallel runner
101-
super()._configure_parallel_runner(self)
101+
super()._configure_parallel_runner()
102102

103103
self._bootstrap_processes()
104104

0 commit comments

Comments
 (0)