mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
column layout is organized
This commit is contained in:
@@ -1182,7 +1182,7 @@ class L3CXProfile(BaseProfile):
|
|||||||
expected_passes = 0
|
expected_passes = 0
|
||||||
old_cx_rx_values = self.__get_rx_values()
|
old_cx_rx_values = self.__get_rx_values()
|
||||||
timestamps = []
|
timestamps = []
|
||||||
|
# for x in range(0,int(round(iterations,0))):
|
||||||
while datetime.datetime.now() < end_time:
|
while datetime.datetime.now() < end_time:
|
||||||
if fields is None:
|
if fields is None:
|
||||||
response = self.json_get("/endp/all")
|
response = self.json_get("/endp/all")
|
||||||
@@ -1212,7 +1212,7 @@ class L3CXProfile(BaseProfile):
|
|||||||
old_cx_rx_values = new_cx_rx_values
|
old_cx_rx_values = new_cx_rx_values
|
||||||
time.sleep(monitor_interval)
|
time.sleep(monitor_interval)
|
||||||
|
|
||||||
|
#organize data
|
||||||
full_test_data_list = []
|
full_test_data_list = []
|
||||||
for test_timestamp, data in value_map.items():
|
for test_timestamp, data in value_map.items():
|
||||||
#reduce the endpoint data to single dictionary of dictionaries
|
#reduce the endpoint data to single dictionary of dictionaries
|
||||||
@@ -1222,10 +1222,11 @@ class L3CXProfile(BaseProfile):
|
|||||||
print(endpoint_data)
|
print(endpoint_data)
|
||||||
endpoint_data["Timestamp"] = test_timestamp
|
endpoint_data["Timestamp"] = test_timestamp
|
||||||
full_test_data_list.append(endpoint_data)
|
full_test_data_list.append(endpoint_data)
|
||||||
|
print(full_test_data_list)
|
||||||
|
|
||||||
|
header_row.append('Timestamp')
|
||||||
df = pd.DataFrame(full_test_data_list)
|
df = pd.DataFrame(full_test_data_list)
|
||||||
df.columns=header_row
|
df.columns=header_row
|
||||||
#df=df[[*header_row]]
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
systeminfo = ast.literal_eval(requests.get('http://'+str(self.lfclient_host)+':'+str(self.lfclient_port)).text)
|
systeminfo = ast.literal_eval(requests.get('http://'+str(self.lfclient_host)+':'+str(self.lfclient_port)).text)
|
||||||
|
|||||||
Reference in New Issue
Block a user