Example #1
0
def render_artin_representation_webpage(dim, conductor, index):
    the_rep = ArtinRepresentation.find_one({
        'Dim': int(dim),
        "Conductor": str(conductor),
        "DBIndex": int(index)
    })

    extra_data = {}
    C = base.getDBConnection()
    extra_data['galois_knowl'] = group_display_knowl(5, 3, C)
    artin_logger.info("Found %s" % (the_rep._data))

    bread = get_bread([
        (str("Dimension %s, conductor %s, index %s" %
             (the_rep.dimension(), the_rep.conductor(), the_rep.index())), ' ')
    ])

    title = the_rep.title()
    the_nf = the_rep.number_field_galois_group()
    from lmfdb.number_field_galois_groups import nfgg_page
    from lmfdb.number_field_galois_groups.main import by_data
    if the_rep.root_number() == 0:
        processed_root_number = "unknown"
    else:
        processed_root_number = str(the_rep.root_number())
    properties = [
        ("Dimension", str(the_rep.dimension())),
        ("Group", the_rep.group()),
        #("Conductor", str(the_rep.conductor())),
        ("Conductor", "$" + the_rep.factored_conductor_latex() + "$"),
        #("Bad primes", str(the_rep.bad_primes())),
        ("Root number", processed_root_number),
        ("Frobenius-Schur indicator", str(the_rep.indicator()))
    ]

    friends = []
    nf_url = the_nf.url_for()
    if nf_url:
        friends.append(("Artin Field", nf_url))

    friends.append(("L-function",
                    url_for("l_functions.l_function_artin_page",
                            dimension=the_rep.dimension(),
                            conductor=the_rep.conductor(),
                            tim_index=the_rep.index())))
    #[
    #("Same degree and conductor", url_for(".by_partial_data", dim = the_rep.dimension(), conductor = the_rep.conductor())),\
    #("L-function", url_for("l_functions.l_function_artin_page",  dimension = the_rep.dimension(), conductor = the_rep.conductor(), tim_index = the_rep.index()))
    #]
    return render_template("artin-representation-show.html",
                           credit=tim_credit,
                           support=support_credit,
                           title=title,
                           bread=bread,
                           friends=friends,
                           object=the_rep,
                           properties2=properties,
                           extra_data=extra_data)
Example #2
0
def render_artin_representation_webpage(dim, conductor, index):
    the_rep = ArtinRepresentation.find_one(
        {'Dim': int(dim), "Conductor": str(conductor), "DBIndex": int(index)})

    extra_data = {}
    C = base.getDBConnection()
    extra_data['galois_knowl'] = group_display_knowl(5,3,C)
    artin_logger.info("Found %s" % (the_rep._data))

    bread = get_bread([(str("Dimension %s, conductor %s, index %s" % (the_rep.dimension(),
                      the_rep.conductor(), the_rep.index())), ' ')])

    title = the_rep.title()
    the_nf = the_rep.number_field_galois_group()
    from lmfdb.number_field_galois_groups import nfgg_page
    from lmfdb.number_field_galois_groups.main import by_data
    if the_rep.root_number() == 0:
        processed_root_number = "unknown"
    else:
        processed_root_number = str(the_rep.root_number())
    properties = [("Dimension", str(the_rep.dimension())),
                  ("Group", the_rep.group()),
                  #("Conductor", str(the_rep.conductor())),
                  ("Conductor", "$" + the_rep.factored_conductor_latex() + "$"),
                  #("Bad primes", str(the_rep.bad_primes())),
                  ("Root number", processed_root_number),
                  ("Frobenius-Schur indicator", str(the_rep.indicator()))
                  ]

    friends = []
    nf_url = the_nf.url_for()
    if nf_url:
        friends.append(("Artin Field", nf_url))

    friends.append(("L-function", url_for("l_functions.l_function_artin_page",
                                          dimension=the_rep.dimension(),
                                          conductor=the_rep.conductor(),
                                          tim_index=the_rep.index())))
              #[
              #("Same degree and conductor", url_for(".by_partial_data", dim = the_rep.dimension(), conductor = the_rep.conductor())),\
              #("L-function", url_for("l_functions.l_function_artin_page",  dimension = the_rep.dimension(), conductor = the_rep.conductor(), tim_index = the_rep.index()))
              #]
    return render_template("artin-representation-show.html", credit=tim_credit, support=support_credit, title=title, bread=bread, friends=friends, object=the_rep, properties2=properties, extra_data=extra_data)