Skip to content

Commit 5505522

Browse files
committed
Add docstring to EnsembleOptimizer.run
1 parent 3abb8bd commit 5505522

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

climada/util/calibrate/cross_calibrate.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@ def __post_init__(self):
141141
raise RuntimeError("Samples must be set!")
142142

143143
def run(self, processes=1, **optimizer_run_kwargs) -> EnsembleOptimizerOutput:
144+
"""Execute the ensemble optimization
145+
146+
Parameters
147+
----------
148+
processes : int, optional
149+
The number of processes to distribute the optimization tasks to. Defaults to
150+
1 (no parallelization)
151+
optimizer_run_kwargs
152+
Additional keywords arguments for the
153+
:py:func`~climada.util.calibrate.base.Optimizer.run` method of the
154+
particular optimizer used.
155+
"""
144156
if processes == 1:
145157
outputs = self._iterate_sequential(**optimizer_run_kwargs)
146158
else:

0 commit comments

Comments
 (0)