Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate titles #6198

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions lmfdb/modular_curves/web_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,35 +181,27 @@ def formatted_model_html(self, m):

def title_of_model(self, lines, nb_var, typ, smooth):
if typ == 0:
title = display_knowl('ag.canonical_model', 'Canonical model') +\
r" in $\mathbb{P}^{ %d }$ " % (nb_var-1,)
title = display_knowl('ag.canonical_model', 'Canonical model') + r" in $\mathbb{P}^{ %d }$ " % (nb_var-1,)
if len(lines) > eqn_threshold:
title += " defined by %d equations" % (len(lines) - 1,)
return title
elif typ == 2:
#smooth is true, false, or none
if smooth is True:
return display_knowl('modcurve.plane_model', 'Smooth plane model') +\
" Smooth plane model"
return display_knowl('modcurve.plane_model', 'Smooth plane model')
elif smooth is False:
return display_knowl('modcurve.plane_model', 'Singular plane model') +\
" Singular plane model"
return display_knowl('modcurve.plane_model', 'Singular plane model')
else:
return display_knowl('modcurve.plane_model', 'Plane model') +\
" Plane model"
return display_knowl('modcurve.plane_model', 'Plane model')
elif typ == 5:
if self.genus == 1:
return display_knowl('ec.weierstrass_coeffs', 'Weierstrass model') +\
" Weierstrass model"
return display_knowl('ec.weierstrass_coeffs', 'Weierstrass model')
else:
return display_knowl('ag.hyperelliptic_curve', 'Weierstrass model') +\
" Weierstrass model"
return display_knowl('ag.hyperelliptic_curve', 'Weierstrass model')
elif typ == 7:
return display_knowl('ag.hyperelliptic_curve', 'Geometric Weierstrass model') +\
" Geometric Weierstrass model"
return display_knowl('ag.hyperelliptic_curve', 'Geometric Weierstrass model')
elif typ == 8:
return display_knowl('modcurve.embedded_model', 'Embedded model') +\
r" Embedded model in $\mathbb{P}^{%d}$" % (nb_var-1,)
return display_knowl('modcurve.embedded_model', 'Embedded model') + r" in $\mathbb{P}^{%d}$" % (nb_var-1,)

def equation_of_model(lines, typ):
table = '<table valign="center">' +\
Expand Down
Loading