Exemplo n.º 1
0
def history_qc():
		
	raw_data = "static/raw_data/temp_files.txt"
	fr = open(raw_data)
	data = fr.readlines()
	fr.close()
	data2 = processdata(data, year = '2014')
	teststr = ""
	n = 0
	#for ele in data2:
		#temp_batch = Batch(ele)
		#print temp_batch.records
		#input_batch(temp_batch, temp_batch.get_batchtype())
		#print temp_batch.batchID

	
	startdate = request.args['startdate']
	enddate = request.args['enddate']
	pressure_type = request.args.get('batchtype', '')
	
	#try:
	history = History(startdate, enddate, pressure_type)
	test_hist = history.get_raw_test_hist()
	hist_plot = history.history_hist_subplot()
	scatter_plot = history.history_scatter_subplot()
	group_date_plot = history.data_groupby_day()
	return render_template('show_history.html', group_date_plot = group_date_plot, scatter_plot = scatter_plot, hist_plot = hist_plot, test_hist = test_hist, info = info, nav_list = nav_list, nav_url = nav_url)
Exemplo n.º 2
0
import os