Skip to content

Commit

Permalink
treat nan as no val
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 7, 2024
1 parent ec009c9 commit 2417515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions es_relval_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ def es_parse_jobreport(payload, logFile):
for i in metrics_list:
name = i.get("Name")
val = i.get("Value")
if not val:
if (not val) or ("nan" in val):
val = ""
payload[name] = val
elif j.get("Metric") == "Timing":
metrics_list = j.iter()
for i in metrics_list:
val = i.get("Value")
if not val:
if (not val) or ("nan" in val):
val = ""
elif "e" in val:
val = float(val)
Expand Down

0 comments on commit 2417515

Please sign in to comment.