Skip to content

Commit

Permalink
fix: codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Sep 8, 2024
1 parent 76b67c2 commit b340e6c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bayes_opt/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,20 +230,16 @@ def update(self, event: str, instance: BayesianOptimization) -> None:
instance : bayesian_optimization.BayesianOptimization
The instance associated with the step.
"""
line = ""
if event == Events.OPTIMIZATION_START:
line = self._header(instance) + "\n"
elif event == Events.OPTIMIZATION_STEP:
is_new_max = self._is_new_max(instance)
if self._verbose == 1 and not is_new_max:
line = ""
else:
if self._verbose != 1 or is_new_max:
colour = self._colour_new_max if is_new_max else self._colour_regular_message
line = self._step(instance, colour=colour) + "\n"
elif event == Events.OPTIMIZATION_END:
line = "=" * self._header_length + "\n"
else:
self._update_tracker(event, instance)
return

if self._verbose:
print(line, end="")
Expand Down

0 comments on commit b340e6c

Please sign in to comment.