mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	kpi_csv_sq.py, added ability to save the individual figures or images
of the graphs. Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		@@ -17,7 +17,8 @@ external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
 | 
				
			|||||||
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
 | 
					app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# get a list of the kpi.csv files not the path needs to be bassed in
 | 
					# get a list of the kpi.csv files not the path needs to be bassed in
 | 
				
			||||||
path = Path('./2021-07-31-03-00-01_lf_check')
 | 
					#path = Path('./2021-07-31-03-00-01_lf_check')
 | 
				
			||||||
 | 
					path = Path('./test_data3')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
kpi_list = list(path.glob('**/kpi.csv'))
 | 
					kpi_list = list(path.glob('**/kpi.csv'))
 | 
				
			||||||
#print(kpi_list)
 | 
					#print(kpi_list)
 | 
				
			||||||
@@ -100,8 +101,11 @@ for test_tag in test_tag_list:
 | 
				
			|||||||
                yaxis_title="{}".format(units[0]),
 | 
					                yaxis_title="{}".format(units[0]),
 | 
				
			||||||
                xaxis = {'type' : 'date'}
 | 
					                xaxis = {'type' : 'date'}
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
 | 
					            # save the figure - this may need to be re-written
 | 
				
			||||||
 | 
					            # uncomment after testing append_fig.write_image("{}_{}_{}_{}.png".format(test_id[0], group, test_tag, test_rig[0]),scale=1,width=1200,height=350)
 | 
				
			||||||
            plot_figure.append(append_fig)
 | 
					            plot_figure.append(append_fig)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# there may be more layout with html.Div 
 | 
					# there may be more layout with html.Div 
 | 
				
			||||||
# Maybe a be more OO
 | 
					# Maybe a be more OO
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user