diff --git a/neps/search_spaces/yaml_search_space_utils.py b/neps/search_spaces/yaml_search_space_utils.py index d3ed7041..e0efe616 100644 --- a/neps/search_spaces/yaml_search_space_utils.py +++ b/neps/search_spaces/yaml_search_space_utils.py @@ -3,9 +3,8 @@ import re -def convert_scientific_notation( - value: str | int | float, show_usage_flag=False -) -> float | (float, bool): +def convert_scientific_notation(value: str | int | float, show_usage_flag=False) \ + -> float | (float, bool): """ Convert a given value to a float if it's a string that matches scientific e notation. This is especially useful for numbers like "3.3e-5" which YAML parsers may not