Exemple #1
0
def get_wall_time():
    db_name = app.jinja_env.globals['db']
    db = db_query.db_query(db_name)

    selection = []
    for x in request.form:
        selection.append(request.form.getlist(x))

    return jsonify(result=db.db_query_wall_times(selection[0]))
Exemple #2
0
def get_data():
    db_name = app.jinja_env.globals['db']
    db = db_query.db_query(db_name)

    selection = []
    for x in request.form:
        selection.append(request.form.getlist(x))

    return jsonify(result=db.db_query_data_table(selection))
Exemple #3
0
def get_prediction_experiments():
    path = os.path.dirname(os.path.realpath(__file__))
    db_name = path + '/static/db/' + request.args.get('db', "", type=str)

    app.jinja_env.globals['db'] = db_name

    db = db_query.db_query(db_name)

    return jsonify(result=db.db_query_prediction_experiments())
Exemple #4
0
def get_experiment_overview():
    db_name = app.jinja_env.globals['db']
    db = db_query.db_query(db_name)

    e_id = request.args.get('id', "", type=str)
    return jsonify(result=db.db_query_experiment_overview(e_id))