Skip to content

Commit

Permalink
Reset the BO generator fields even they are not presented
Browse files Browse the repository at this point in the history
  • Loading branch information
zhe-slac committed Feb 2, 2025
1 parent e98bf6b commit b9b5630
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/badger/gui/acr/components/routine_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,19 +967,10 @@ def _compose_routine(self) -> Routine:
turbo_config = generator_params["turbo_controller"]
if type(turbo_config) is dict:
if turbo_config["name"] == "optimize":
try:
turbo_config["center_x"] = None
except KeyError:
pass
try:
turbo_config["best_value"] = None
except KeyError:
pass
turbo_config["center_x"] = None
turbo_config["best_value"] = None
elif turbo_config["name"] == "safety":
try:
turbo_config["center_x"] = None
except KeyError:
pass
turbo_config["center_x"] = None

env_params = load_config(self.env_box.edit.toPlainText())

Expand Down

0 comments on commit b9b5630

Please sign in to comment.