Beispiel #1
0
def random_nfglobal():
    label = random_object_from_collection(nfdb())['label']
    #This version leaves the word 'random' in the URL:
    #return render_field_webpage({'label': label})
    #This version uses the number field's own URL:
    #url =
    return redirect(url_for(".by_label", label=label))
Beispiel #2
0
def random_nfglobal():
    label = random_object_from_collection( getDBConnection().numberfields.fields )['label']
    #This version leaves the word 'random' in the URL:
    #return render_field_webpage({'label': label})
    #This version uses the number field's own URL:
    #url =
    return redirect(url_for(".by_label", label= label))
Beispiel #3
0
def random_curve():
    E = random_object_from_collection(db_ecnf())
    return redirect(
        url_for(".show_ecnf",
                nf=E['field_label'],
                conductor_label=E['conductor_label'],
                class_label=E['iso_label'],
                number=E['number']), 307)
Beispiel #4
0
def random_form():
    label = random_object_from_collection( db_emf() )['hecke_orbit_label']
    level, weight, character, label = parse_newform_label(label)
    args={}
    args['level'] = level
    args['weight'] = weight
    args['character'] = character
    args['label'] = label
    return redirect(url_for(".render_elliptic_modular_forms", **args), 301)
Beispiel #5
0
def random_curve():
    E = random_object_from_collection(db_ecnf())
    return redirect(
        url_for(
            ".show_ecnf",
            nf=E["field_label"],
            conductor_label=E["conductor_label"],
            class_label=E["iso_label"],
            number=E["number"],
        ),
        301,
    )
Beispiel #6
0
def random_field():
    label = random_object_from_collection(
        base.getDBConnection().localfields.fields)['label']
    return redirect(url_for(".by_label", label=label), 301)
Beispiel #7
0
def random():
    data = random_object_from_collection(st_groups())
    return redirect(url_for('.by_label', label=data['label']), 307)
Beispiel #8
0
def random_lattice():
    res = random_object_from_collection(lattice_db())
    return redirect(url_for(".render_lattice_webpage", label=res['label']), 307)
Beispiel #9
0
def random_hmf():    # Random Hilbert modular form
    return hilbert_modular_form_by_label( random_object_from_collection( getDBConnection().hmfs.forms ) )
Beispiel #10
0
def random_group():
    label = random_object_from_collection(
        base.getDBConnection().transitivegroups.groups)['label']
    return redirect(url_for(".by_label", label=label), 301)
Beispiel #11
0
def random_curve():
    E = random_object_from_collection(db_ecnf())
    return redirect(url_for(".show_ecnf", nf=E['field_label'], conductor_label=E['conductor_label'], class_label=E['iso_label'], number=E['number']), 301)
Beispiel #12
0
def random_curve():
    label = random_object_from_collection( db_ec() )['label']
    # This version leaves the word 'random' in the URL:
    # return render_curve_webpage_by_label(label)
    # This version uses the curve's own URL:
    return redirect(url_for(".by_ec_label", label=label), 301)
Beispiel #13
0
def random_rep_galois_modl():
    res = random_object_from_collection( getDBConnection().mod_l_galois.reps )
    return redirect(url_for(".render_rep_galois_modl_webpage", label=res['label']))
Beispiel #14
0
def random_rep_galois_modl():
    res = random_object_from_collection(getDBConnection().mod_l_galois.reps)
    return redirect(
        url_for(".render_rep_galois_modl_webpage", label=res['label']))
Beispiel #15
0
def random_representation():
    rep = random_object_from_collection(ArtinRepresentation.collection())
    num = random.randrange(0, len(rep['GaloisConjugates']))
    label = rep['Baselabel'] + "c" + str(num + 1)
    return redirect(
        url_for(".render_artin_representation_webpage", label=label), 301)
Beispiel #16
0
def random_lattice():
    res = random_object_from_collection(getDBConnection().Lattices.lat)
    return redirect(url_for(".render_lattice_webpage", label=res['label']))
Beispiel #17
0
def random_curve():
    label = random_object_from_collection( db_ec() )['lmfdb_label']
    cond, iso, num = split_lmfdb_label(label)
    return redirect(url_for(".by_triple_label", conductor=cond, iso_label=iso, number=num))
Beispiel #18
0
def random_hmf():  # Random Hilbert modular form
    return hilbert_modular_form_by_label(
        random_object_from_collection(getDBConnection().hmfs.forms))
Beispiel #19
0
def random_hecke_algebra():
    res = random_object_from_collection(hecke_db())
    return redirect(url_for(".render_hecke_algebras_webpage", label=res['label']))
Beispiel #20
0
def random_modlmf():
    res = random_object_from_collection(
        getDBConnection().mod_l_eigenvalues.modlmf)
    return redirect(url_for(".render_modlmf_webpage", label=res['label']))
Beispiel #21
0
def random_class():
    label = random_object_from_collection(db())['label']
    g, q, iso = split_label(label)
    return redirect(url_for(".abelian_varieties_by_gqi", g=g, q=q, iso=iso))
Beispiel #22
0
def random():
    data = random_object_from_collection(st_groups())
    return redirect(url_for('.by_label', label=data['label']), 307)
Beispiel #23
0
def random_group():
    label = random_object_from_collection(base.getDBConnection().transitivegroups.groups)['label']
    return redirect(url_for(".by_label", label=label), 307)
Beispiel #24
0
def random_curve():
    label = random_object_from_collection(g2cdb().curves)['label']
    # This version leaves the word 'random' in the URL:
    #return render_curve_webpage_by_label(label)
    # This version uses the curve's own URL:
    return redirect(url_for(".by_g2c_label", label=label), 301)
Beispiel #25
0
def random_modlmf():
    res = random_object_from_collection( getDBConnection().mod_l_eigenvalues.modlmf )
    return redirect(url_for(".render_modlmf_webpage", label=res['label']))
Beispiel #26
0
def random_lattice():
    res = random_object_from_collection( getDBConnection().Lattices.lat )
    return redirect(url_for(".render_lattice_webpage", label=res['label']))
Beispiel #27
0
def random_field():
    label = random_object_from_collection(lfdb())['label']
    return redirect(url_for(".by_label", label=label), 307)
Beispiel #28
0
def random_curve():
    label = random_object_from_collection( db_ec() )['lmfdb_label']
    cond, iso, num = split_lmfdb_label(label)
    return redirect(url_for(".by_triple_label", conductor=cond, iso_label=iso, number=num))
Beispiel #29
0
def random_representation():
    rep = random_object_from_collection(ArtinRepresentation.collection())
    num = random.randrange(0, len(rep['GaloisConjugates']))
    label = rep['Baselabel']+"c"+str(num+1)
    return redirect(url_for(".render_artin_representation_webpage", label=label), 301)
Beispiel #30
0
def random_field():
    label = random_object_from_collection(base.getDBConnection().localfields.fields)['label']
    return redirect(url_for(".by_label", label=label), 301)
Beispiel #31
0
def random_field():
    label = random_object_from_collection(lfdb())['label']
    return redirect(url_for(".by_label", label=label), 307)
Beispiel #32
0
def random_bmf():  # Random Hilbert modular form
    return bianchi_modular_form_by_label(
        random_object_from_collection(db_forms()))
Beispiel #33
0
def random_hmf():    # Random Hilbert modular form
    return hilbert_modular_form_by_label( random_object_from_collection( db_forms() ) )
Beispiel #34
0
def random_class():
    label = random_object_from_collection(db())['label']
    g, q, iso = split_label(label)
    return redirect(url_for(".abelian_varieties_by_gqi", g = g, q = q, iso = iso))
Beispiel #35
0
def random_hecke_algebra():
    res = random_object_from_collection(hecke_db())
    return redirect(url_for(".render_hecke_algebras_webpage", label=res['label']))