X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Freport%2Fgraphs.py;h=0543193d99a6e23a35c1fc7053f2abe06f4ad389;hp=92cf5ca9893266deedd7aeb9f397441dc14fc6e7;hb=06d3f7331f9f10d99baa334b1808dfdc9c6fc8be;hpb=1b2710767a34113c266c81a18b98d71e0c8dd6ef diff --git a/resources/tools/dash/app/pal/report/graphs.py b/resources/tools/dash/app/pal/report/graphs.py index 92cf5ca989..0543193d99 100644 --- a/resources/tools/dash/app/pal/report/graphs.py +++ b/resources/tools/dash/app/pal/report/graphs.py @@ -24,6 +24,7 @@ import hdrh.histogram import hdrh.codec +_NORM_FREQUENCY = 2.0 # [GHz] _FREQURENCY = { # [GHz] "2n-aws": 1.000, "2n-dnv": 2.000, @@ -181,7 +182,8 @@ def graph_iterative(data: pd.DataFrame, sel:dict, layout: dict, continue phy = itm["phy"].split("-") topo_arch = f"{phy[0]}-{phy[1]}" if len(phy) == 4 else str() - norm_factor = 2.0 / _FREQURENCY[topo_arch] if normalize else 1.0 + norm_factor = (_NORM_FREQUENCY / _FREQURENCY[topo_arch]) \ + if normalize else 1.0 if itm["testtype"] == "mrr": y_data_raw = itm_data[_VALUE[itm["testtype"]]].to_list()[0] y_data = [y * norm_factor for y in y_data_raw]