Skip to content

Commit

Permalink
suspected bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar committed Nov 4, 2024
1 parent 21ce4aa commit 060bb3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/parse_ba_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def main(lims, args):
xml_query, return_type = udf_to_xml[udf_name]

result = xml_results.find(f".//{xml_query}").text.strip()
if isinstance(return_type, int):
if return_type is int:
result = int(round(float(result), 0))
elif isinstance(return_type, float):
elif return_type is float:
result = float(result)

try:
Expand Down

0 comments on commit 060bb3e

Please sign in to comment.