示例#1
0
def index():
    bread = get_bread()
    if request.args:
        return higher_genus_w_automorphisms_search(**request.args)

    C = base.getDBConnection()
    genus_max = C.curve_automorphisms.passports.find().sort(
        'genus', pymongo.DESCENDING).limit(1)[0]['genus'] + 1
    genus_list = range(2, genus_max)
    info = {
        'count': 20,
        'genus_list': genus_list,
        'stats': get_stats_object().stats(),
    }

    learnmore = [('Source of the data', url_for(".how_computed_page")),
                 ('Labeling convention', url_for(".labels_page")),
                 ('Completeness of the data', url_for(".completeness_page"))]

    return render_template(
        "hgcwa-index.html",
        title="Families of Higher Genus Curves with Automorphisms",
        bread=bread,
        credit=credit,
        info=info,
        learnmore=learnmore)
示例#2
0
文件: main.py 项目: 370417/lmfdb
def statistics():
    info = {
        'stats': get_stats_object().stats(),
    }
    title = 'Families of Higher Genus Curves with Automorphisms: Statistics'
    bread = get_bread([('Statistics', ' ')])
    return render_template("hgcwa-stats.html", info=info, credit=credit, title=title, bread=bread)
示例#3
0
文件: main.py 项目: kedlaya/lmfdb
def statistics():
    info = {
        'stats': get_stats_object().stats(),
    }
    title = 'Families of Higher Genus Curves with Automorphisms: Statistics'
    bread = get_bread([('Statistics', ' ')])
    return render_template("hgcwa-stats.html", info=info, credit=credit, title=title, bread=bread)
示例#4
0
文件: main.py 项目: kedlaya/lmfdb
def index():
    bread = get_bread()
    if request.args:
        return higher_genus_w_automorphisms_search(request.args)
    genus_max = db.hgcwa_passports.max('genus')
    genus_list = range(2,genus_max+1)
    info = {'count': 20,
            'genus_list': genus_list,
            'stats': get_stats_object().stats(),}

    learnmore = [('Source of the data', url_for(".how_computed_page")),
                ('Labeling convention', url_for(".labels_page")),
                ('Completeness of the data', url_for(".completeness_page"))]

    return render_template("hgcwa-index.html", title="Families of Higher Genus Curves with Automorphisms", bread=bread, credit=credit, info=info, learnmore=learnmore)
示例#5
0
def index():
    bread = get_bread()
    if request.args:
        return higher_genus_w_automorphisms_search(**request.args)

    C = base.getDBConnection()
    genus_max = C.curve_automorphisms.passports.find().sort('genus', pymongo.DESCENDING).limit(1)[0]['genus']  + 1
    genus_list = range(2,genus_max)
    info = {'count': 20,
            'genus_list': genus_list,
            'stats': get_stats_object().stats(),}


    learnmore = [('Source of the data', url_for(".how_computed_page")),
                ('Labeling convention', url_for(".labels_page")),
                ('Completeness of the data', url_for(".completeness_page"))]

    return render_template("hgcwa-index.html", title="Families of Higher Genus Curves with Automorphisms", bread=bread, credit=credit, info=info, learnmore=learnmore)
示例#6
0
def index():
    bread = get_bread()
    if request.args:
        return higher_genus_w_automorphisms_search(request.args)
    genus_max = db.hgcwa_passports.max('genus')
    genus_list = range(2, genus_max + 1)
    info = {
        'count': 20,
        'genus_list': genus_list,
        'stats': get_stats_object().stats(),
    }

    learnmore = [('Source of the data', url_for(".how_computed_page")),
                 ('Labeling convention', url_for(".labels_page")),
                 ('Completeness of the data', url_for(".completeness_page"))]

    return render_template(
        "hgcwa-index.html",
        title="Families of Higher Genus Curves with Automorphisms",
        bread=bread,
        credit=credit,
        info=info,
        learnmore=learnmore)