From 9bbb9e33ec4134f453981e22fb589ac5a6fdefbc Mon Sep 17 00:00:00 2001 From: Lukas Fehring Date: Wed, 15 Jan 2025 15:41:22 +0100 Subject: [PATCH] Add check for None --- smac/acquisition/maximizer/local_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smac/acquisition/maximizer/local_search.py b/smac/acquisition/maximizer/local_search.py index 3151f8998..26b26c0aa 100644 --- a/smac/acquisition/maximizer/local_search.py +++ b/smac/acquisition/maximizer/local_search.py @@ -338,7 +338,7 @@ def _search( while np.any(active): # If the maximum number of steps is reached, stop the local search - if num_iters == self._max_steps: + if num_iters is not None and num_iters == self._max_steps: break num_iters += 1