Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
danrgll committed Dec 8, 2023
1 parent 8be2a70 commit d11e4c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions neps/search_spaces/yaml_search_space_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d11e4c7

Please sign in to comment.