From 2417515d9e3029f4055b3d27724e05a8a91639fd Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Mon, 7 Oct 2024 12:20:44 +0200 Subject: [PATCH] treat nan as no val --- es_relval_log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es_relval_log.py b/es_relval_log.py index a5cb18d3baa..ac94460eb19 100755 --- a/es_relval_log.py +++ b/es_relval_log.py @@ -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)