Skip to content

Commit

Permalink
Use logger.warning
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Jun 21, 2023
1 parent d04a23b commit 26807e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CADETProcess/optimization/optimizationProblem.py
Expand Up @@ -601,7 +601,7 @@ def _evaluate_individual(self, eval_funs, x, force=False):
value = self._evaluate(x, eval_fun, force)
results = np.hstack((results, value))
except CADETProcessError as e:
self.logger.warn(
self.logger.warning(
f'Evaluation of {eval_fun.name} failed at {x} with Error "{e}". '
f'Returning bad metrics.'
)
Expand Down Expand Up @@ -1525,7 +1525,7 @@ def evaluate_callbacks(self, ind, current_iteration=1, force=False):
try:
self._evaluate(x, callback, force)
except CADETProcessError:
self.logger.warn(
self.logger.warning(
f'Evaluation of {callback} failed at {x}.'
)

Expand Down

0 comments on commit 26807e3

Please sign in to comment.