Skip to content

Commit

Permalink
Fix parsing of validators with inf limits
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Jan 24, 2025
1 parent d1ea6dd commit a875ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_util/parser/parameter_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def _parse_int(xml_el: Element, attribute: str) -> Optional[int]:

def _parse_number(xml_el: Element, attribute: str) -> Optional[Union[float, int]]:
raw_value = xml_el.get(attribute)
if raw_value and ("." in raw_value or "e" in raw_value):
if raw_value and ("." in raw_value or "e" in raw_value or "inf" in raw_value):
return float(raw_value)
elif raw_value:
return int(raw_value)
Expand Down

0 comments on commit a875ba1

Please sign in to comment.