def l_function_ec_page(label): logger.debug(label) m = lmfdb_label_regex.match(label) if m is not None: # Lmfdb label is given if m.groups()[2]: # strip off the curve number return flask.redirect(url_for('.l_function_ec_page', label=label[:-1]), 301) else: args = {'label': label} return render_single_Lfunction(Lfunction_EC, args, request) m = cremona_label_regex.match(label) if m is not None: # Do a redirect if cremona label is given if m.groups()[2]: C = getDBConnection().elliptic_curves.curves.find_one({'label': label}) else: C = getDBConnection().elliptic_curves.curves.find_one({'iso': label}) return flask.redirect(url_for('.l_function_ec_page', label=(C['lmfdb_iso'])), 301)
def modform_from_EC(label): ''' Returns the level and label for the cusp form corresponding to the elliptic curve with given label. ''' N, iso, number = lmfdb_label_regex.match(label).groups() return {'level': N, 'iso': iso}