mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
test_l3_scenario_throughput.py : commented out ploting as ploting uses bokeh
the test was unmodified , and the xlsx report still generated. May need to update test to support plotly. Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
committed by
shivam
parent
0810876412
commit
e86e2b19c1
@@ -15,7 +15,7 @@
|
||||
|
||||
Installation
|
||||
pip install paramiko
|
||||
pip install bokeh
|
||||
pip install bokeh - bokeh code commented out , need to add support for plotly
|
||||
pip install XlsxWriter
|
||||
|
||||
Example
|
||||
@@ -32,9 +32,10 @@ import time
|
||||
import logging
|
||||
import paramiko as pmgo
|
||||
import xlsxwriter
|
||||
from bokeh.io import show
|
||||
from bokeh.plotting import figure
|
||||
from bokeh.models import LinearAxis, Range1d
|
||||
# need to change to supported packages
|
||||
# from bokeh.io import show
|
||||
# from bokeh.plotting import figure
|
||||
# from bokeh.models import LinearAxis, Range1d
|
||||
from datetime import datetime
|
||||
import socket
|
||||
|
||||
@@ -146,11 +147,13 @@ def GenerateReport(scenario, detail, throughput_sta, throughput_vap, absolute_ti
|
||||
Time = []
|
||||
for i in range(0, int(duration) * 5):
|
||||
Time.append(i)
|
||||
plot(sta_throu, vap_throu, core1, core2, Time)
|
||||
# bokeh not supported plot(sta_throu, vap_throu, core1, core2, Time)
|
||||
workbook.close()
|
||||
|
||||
|
||||
# Plotting Function for Parameters
|
||||
# Need to change to support of plotly
|
||||
'''
|
||||
def plot(throughput_sta, throughput_vap, core1_temp, core2_temp, Time):
|
||||
print(throughput_vap)
|
||||
s1 = figure(plot_width=1000, plot_height=600)
|
||||
@@ -174,7 +177,7 @@ def plot(throughput_sta, throughput_vap, core1_temp, core2_temp, Time):
|
||||
# s1.circle(Time, core2_temp, y_range_name='Temperature', color='blue')
|
||||
|
||||
show(s1)
|
||||
|
||||
'''
|
||||
|
||||
# Creates the Instance for LFCliBase
|
||||
class VAP_Measure(LFCliBase):
|
||||
|
||||
Reference in New Issue
Block a user