示例#1
0
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)
示例#2
0
def flaks_write():
    p2 = subprocess.Popen('DT5742_write.exe', shell=True)
    response = p2.communicate()
    makePlots()
    return app.send_static_file('index.html')
示例#3
0
def flask_refresh():
    makePlots()
    return app.send_static_file('index.html')
示例#4
0
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)