def render_curve_webpage_by_label(label): credit = 'Genus 2 Team' data = WebG2C.by_label(label) return render_template("curve_g2.html", properties2=data.properties, credit=credit, data=data, bread=data.bread, title=data.title, friends=data.friends, downloads=data.downloads)
def render_curve_webpage_by_label(label): credit = credit_string data = WebG2C.by_label(label) return render_template("curve_g2.html", properties2=data.properties, credit=credit, data=data, bread=data.bread, title=data.title, friends=data.friends, downloads=data.downloads)
def render_isogeny_class_webpage(label): try: g2c = WebG2C.by_label(label) except (KeyError, ValueError) as err: return abort(404, err.args) return render_template("g2c_isogeny_class.html", properties2=g2c.properties, credit=credit_string, data=g2c.data, bread=g2c.bread, learnmore=learnmore_list(), title=g2c.title, friends=g2c.friends)
def render_isogeny_class_webpage(label): try: g2c = WebG2C.by_label(label) except (KeyError,ValueError) as err: return abort(404,err.args) return render_template("g2c_isogeny_class.html", properties2=g2c.properties, credit=credit_string, data=g2c.data, bread=g2c.bread, learnmore=learnmore_list(), title=g2c.title, friends=g2c.friends)
def render_curve_webpage_by_label(label): credit = credit_string data = WebG2C.by_label(label) if isinstance(data,str): return data return render_template("curve_g2.html", properties2=data.properties, credit=credit, data=data, bread=data.bread, learnmore=learnmore_list(), title=data.title, friends=data.friends)
def render_isogeny_class_webpage(label): g2c = WebG2C.by_label(label) if not g2c: return "Error constructing genus 2 isogeny class with label " + label if isinstance(g2c,str): return g2c return render_template("g2c_isogeny_class.html", properties2=g2c.properties, credit=credit_string, data=g2c.data, bread=g2c.bread, learnmore=learnmore_list(), title=g2c.title, friends=g2c.friends)
def render_curve_webpage(label): try: g2c = WebG2C.by_label(label) except (KeyError,ValueError) as err: return abort(404,err.args) return render_template("g2c_curve.html", properties2=g2c.properties, credit=credit_string, info={'aut_grp_dict':aut_grp_dict,'geom_aut_grp_dict':geom_aut_grp_dict}, data=g2c.data, code=g2c.code, bread=g2c.bread, learnmore=learnmore_list(), title=g2c.title, friends=g2c.friends)
def render_curve_webpage_by_label(label): credit = credit_string data = WebG2C.by_label(label) if data == "Invalid label": return data if data == "Data for curve not found": return data return render_template("curve_g2.html", properties2=data.properties, credit=credit, data=data, bread=data.bread, learnmore=learnmore_list(), title=data.title, friends=data.friends)
def render_curve_webpage(label): credit = credit_string data = WebG2C.by_label(label) # check for error message string if isinstance(data,str): return data return render_template("curve_g2.html", properties2=data.properties, credit=credit_string, info={'aut_grp_dict':aut_grp_dict,'geom_aut_grp_dict':geom_aut_grp_dict}, data=data, code=data.code, bread=data.bread, learnmore=learnmore_list(), title=data.title, friends=data.friends)
def render_curve_webpage(label): g2c = WebG2C.by_label(label) if not g2c: return "Error constructing genus 2 curve with label " + label if isinstance(g2c,str): return g2c return render_template("g2c_curve.html", properties2=g2c.properties, credit=credit_string, info={'aut_grp_dict':aut_grp_dict,'geom_aut_grp_dict':geom_aut_grp_dict}, data=g2c.data, code=g2c.code, bread=g2c.bread, learnmore=learnmore_list(), title=g2c.title, friends=g2c.friends)
def g2c_code(**args): label = g2c_lmfdb_label(args['conductor'], args['iso'], args['discriminant'], args['number']) try: C = WebG2C.by_label(label) except ValueError: return genus2_jump_error(label, {}), False except KeyError: return genus2_jump_error(label, {}, missing_curve=True), False Ccode = C.get_code() lang = args['download_type'] code = "%s %s code for working with genus 2 curve %s\n\n" % (Comment[lang],Fullname[lang],label) if lang=='gp': lang = 'pari' for k in sorted_code_names: if lang in Ccode[k]: code += "\n%s %s: \n" % (Comment[lang],code_names[k]) code += Ccode[k][lang] + ('\n' if '\n' not in Ccode[k][lang] else '') return code, True
def render_curve_webpage(label): try: g2c = WebG2C.by_label(label) except (KeyError, ValueError) as err: return abort(404, err.args) return render_template( "g2c_curve.html", properties=g2c.properties, downloads=g2c.downloads, info={"aut_grp_dict": aut_grp_dict, "geom_aut_grp_dict": geom_aut_grp_dict}, data=g2c.data, code=g2c.code, bread=g2c.bread, learnmore=learnmore_list(), title=g2c.title, friends=g2c.friends, KNOWL_ID="g2c.%s" % label, )
def render_curve_webpage(label): credit = credit_string data = WebG2C.by_label(label) # check for error message string if isinstance(data, str): return data return render_template("curve_g2.html", properties2=data.properties, credit=credit_string, info={ 'aut_grp_dict': aut_grp_dict, 'geom_aut_grp_dict': geom_aut_grp_dict }, data=data, code=data.code, bread=data.bread, learnmore=learnmore_list(), title=data.title, friends=data.friends)