Skip to content

Commit 8ab8600

Browse files
committed
Fix linter issues and remove unused code
1 parent 2986b51 commit 8ab8600

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

climada/util/calibrate/bayesian_optimizer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from bayes_opt import BayesianOptimization
1111
from bayes_opt.target_space import TargetSpace
1212

13-
from climada.engine import Impact
1413
from .base import Output, Optimizer
1514

1615

@@ -217,6 +216,8 @@ def plot_p_space(
217216
min_color : str, optional
218217
Color for plotting the minimum. Defaults to ``"r"`` (red).
219218
"""
219+
# pylint: disable=invalid-name
220+
220221
if p_space_df is None:
221222
p_space_df = self.p_space_to_dataframe()
222223

climada/util/calibrate/func.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

climada/util/calibrate/scipy_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run(self, **opt_kwargs) -> ScipyMinimizeOptimizerOutput:
9595
else None
9696
)
9797

98-
x0 = np.array(list(params_init.values()))
98+
x0 = np.array(list(params_init.values())) # pylint: disable=invalid-name
9999
res = minimize(
100100
fun=self._opt_func,
101101
x0=x0,

0 commit comments

Comments
 (0)