Change-Id: I63efaa244aa4931a8ab474bc64520e1f501ad57a
Signed-off-by: Tibor Frank <tifrank@cisco.com>
"""
data_x = list(in_data.keys())
"""
data_x = list(in_data.keys())
- data_y = list(in_data.values())
+ data_y = [float(item) / 1e6 for item in in_data.values()]
hover_text = list()
xaxis = list()
hover_text = list()
xaxis = list()
u"data"].split(" ")[1]]).replace(u'"', u'""')
if column[u"data"].split(u" ")[1] in \
(u"conf-history", u"show-run"):
u"data"].split(" ")[1]]).replace(u'"', u'""')
if column[u"data"].split(u" ")[1] in \
(u"conf-history", u"show-run"):
- col_data = col_data.replace(u" |br| ", u"", )
+ col_data = col_data.replace(u" |br| ", u"", 1)
col_data = f" |prein| {col_data[:-5]} |preout| "
row_lst.append(f'"{col_data}"')
except KeyError:
col_data = f" |prein| {col_data[:-5]} |preout| "
row_lst.append(f'"{col_data}"')
except KeyError:
r"PAPI command history:", u"",
msg.message, count=1).replace(u'\n', u' |br| ').\
replace(u'"', u"'")
r"PAPI command history:", u"",
msg.message, count=1).replace(u'\n', u' |br| ').\
replace(u'"', u"'")
self._data[u"tests"][self._test_id][u"conf-history"] += (
f" |br| **DUT{str(self._conf_history_lookup_nr)}:** {text}"
)
self._data[u"tests"][self._test_id][u"conf-history"] += (
f" |br| **DUT{str(self._conf_history_lookup_nr)}:** {text}"
)
txt_table.align[u"Vectors/Calls"] = u"r"
text += txt_table.get_string(sortby=u"Name") + u'\n'
txt_table.align[u"Vectors/Calls"] = u"r"
text += txt_table.get_string(sortby=u"Name") + u'\n'
- text = f" \n**DUT: {host}{socket}**\n{text}".\
+ text = f"\n**DUT: {host}{socket}**\n{text}".\
replace(u'\n', u' |br| ').\
replace(u'\r', u'').\
replace(u'"', u"'")
replace(u'\n', u' |br| ').\
replace(u'\r', u'').\
replace(u'"', u"'")
height: 800
yaxis:
showticklabels: True
height: 800
yaxis:
showticklabels: True
- tickformat: ".4s"
- title: "Throughput [pps]"
- hoverformat: ".4s"
+ tickformat: ".5s"
+ title: "Throughput [Mpps]"
+ hoverformat: ".5s"
gridcolor: "rgb(238, 238, 238)"
linecolor: "rgb(238, 238, 238)"
showline: True
gridcolor: "rgb(238, 238, 238)"
linecolor: "rgb(238, 238, 238)"
showline: True
l: 70
legend:
orientation: "h"
l: 70
legend:
orientation: "h"
traceorder: "normal" # "grouped" does not work: bug https://github.com/plotly/plotly.js/issues/1913
traceorder: "normal" # "grouped" does not work: bug https://github.com/plotly/plotly.js/issues/1913
bordercolor: "rgb(238, 238, 238)"
paper_bgcolor: "#fff"
plot_bgcolor: "#fff"
bordercolor: "rgb(238, 238, 238)"
paper_bgcolor: "#fff"
plot_bgcolor: "#fff"