def admin_plot(): event = request.args.get('n', None) if event is not None: event = int(event) histo = request.args.get('histo', None) makePlots(event=event, histo=histo) return redirect("/admin", code=302)
def flaks_write(): p2 = subprocess.Popen('DT5742_write.exe', shell=True) response = p2.communicate() makePlots() return app.send_static_file('index.html')
def flask_refresh(): makePlots() return app.send_static_file('index.html')
from caen_plotting import makePlots if __name__ == '__main__': import sys if len(sys.argv) == 2: makePlots(int(sys.argv[1]), config='E:\\config.txt', histo=True) else: makePlots(100, config='E:\\config.txt', histo=True)