traces = list()
df = pd.DataFrame(y_vals)
df.head()
- y_max = list()
for i, col in enumerate(df.columns):
tst_name = re.sub(REGEX_NIC, "",
col.lower().replace('-ndrpdr', '').
replace('2n1l-', ''))
tst_name = "-".join(tst_name.split("-")[3:-2])
name = "{nr}. ({samples:02d} run{plural}, packets lost average: " \
- "{loss:.1f}, {name}".format(
+ "{loss:.1f}) {name}".format(
nr=(i + 1),
samples=nr_of_samples[i],
plural='s' if nr_of_samples[i] > 1 else '',
traces.append(plgo.Box(x=[str(i + 1) + '.'] * len(df[col]),
y=[y if y else None for y in df[col]],
name=name,
- hoverinfo="x+y",
- boxpoints="outliers",
- whiskerwidth=0))
- try:
- val_max = max(df[col])
- except ValueError as err:
- logging.error(repr(err))
- continue
- if val_max:
- y_max.append(int(val_max) + 1)
-
+ hoverinfo="y+name"))
try:
# Create plot
layout = deepcopy(plot["layout"])
layout["title"] = "<b>Time Lost:</b> {0}".format(layout["title"])
layout["yaxis"]["title"] = "<b>Implied Time Lost [s]</b>"
layout["legend"]["font"]["size"] = 14
- if y_max:
- layout["yaxis"]["range"] = [0, max(y_max)]
+ layout["yaxis"].pop("range")
plpl = plgo.Figure(data=traces, layout=layout)
# Export Plot
traces.append(plgo.Box(x=[str(i + 1) + '.'] * len(df[col]),
y=[y / 1000000 if y else None for y in df[col]],
name=name,
- hoverinfo="x+y",
- boxpoints="outliers",
- whiskerwidth=0))
+ hoverinfo="y+name"))
try:
val_max = max(df[col])
except ValueError as err:
stdev=None)
try:
if plot["include-tests"] == "MRR":
- result = test["result"]["receive-rate"].avg
+ result = test["result"]["receive-rate"] # .avg
elif plot["include-tests"] == "PDR":
result = test["throughput"]["PDR"]["LOWER"]
elif plot["include-tests"] == "NDR":
stdev_c=None)
try:
if plot["include-tests"] == "MRR":
- result = test["result"]["receive-rate"].avg
+ result = test["result"]["receive-rate"] # .avg
elif plot["include-tests"] == "PDR":
result = test["throughput"]["PDR"]["LOWER"]
elif plot["include-tests"] == "NDR":