Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion CONTRIBUTORS.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is the list of contributors to LMFDB
# They are listed on /acknowledgement and maybe elsewhere
# They are listed on /acknowledgment and maybe elsewhere
# the 'name' field is mandatory, all others currently optional
# - affil: university or company affiliation
# - url: homepage
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/api2/templates/api2.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h2 id="api2-requests">API2 requests</h2>
<li><p><a class="uri">/api2/inventory/&lt;searcher&gt;</a> - Describe the list of possible fields that can be returned by a searcher</p></li>
<li><p><a class="uri">/api2/data/&lt;searcher&gt;</a> - Perform a search using a given searcher. Query parameters taken from the searcher description are provided as an ampersand delimited query string to this endpoint. Non searching parameters are available and are all prepended by “_”</p></li>
<li><p><a class="uri">/api2/pretty/&lt;other_path&gt;</a> - This takes a valid other API path and produces a human readable (just) HTML page from the data contained. The other path should be the part after “api2” in the URL</p></li>
<li><p><a class="uri">/api2/singleton/&lt;path&gt;</a> - This is intended to provide a URL that allows canonical reference to a single element of the database. The format of the singletons is not standardised and should not in general be used for machine readable access</p></li>
<li><p><a class="uri">/api2/singleton/&lt;path&gt;</a> - This is intended to provide a URL that allows canonical reference to a single element of the database. The format of the singletons is not standardized and should not in general be used for machine readable access</p></li>
<li><p><a class="uri">/api2/livepg/&lt;database&gt;</a> - This is intended to replicate the behavior of the existing API. By specifying a database name and then using a standard search string (as per the /data/&lt;searcher&gt; endpoint) a search is performed on the raw database. This is not intended for normal access, but for debugging and testing purposes only.</p></li>
</ul>
<h3 id="api2-singletons">API2 singleton queries</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{% endif %}
<p>{{info.report | safe}}
{# we have to decide which option is preselected
based on a judgement of what users will want to
based on a judgment of what users will want to
switch to, i.e. one of the other two options. For
simplicity I have used the 3-cycle new -> all ->
cusp -> new. #}
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/bianchi_modular_forms/web_BMF.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __init__(self, dbdata, max_eigs=50):
- dbdata: the data from the database

dbdata is expected to be a database entry from which the class
is initialised.
is initialized.

"""
self.__dict__.update(dbdata)
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/characters/test_characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_dirichletgalorbs(self):
r'<td class="center">\(e\left(\frac{115}{714}\right)\)</td>')
assert table_row in W.get_data(as_text=True)

# Tests for URL behaviour of characters
# Tests for URL behavior of characters

W = self.tc.get('/Character/Dirichlet/5489/banana/100', follow_redirects=True)
assert bool_string(True) in W.get_data(as_text=True)
Expand Down
6 changes: 3 additions & 3 deletions lmfdb/classical_modular_forms/web_newform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1028,9 +1028,9 @@ def display_hecke_char_polys(self, num_disp=5):
th_wrap('charpoly', '$F_p(T)$'),
' </tr>', '</thead>', '<tbody>']
loop_count = 0
for p, factorisation in hecke_polys_orbits.items():
factorisation.sort(key=lambda elt: (elt[0].degree(), elt[1]))
charpoly = raw_typeset_poly_factor(factorisation, decreasing=True)
for p, factorization in hecke_polys_orbits.items():
factorization.sort(key=lambda elt: (elt[0].degree(), elt[1]))
charpoly = raw_typeset_poly_factor(factorization, decreasing=True)
if loop_count < num_disp:
polys.append(' <tr>')
else:
Expand Down
6 changes: 3 additions & 3 deletions lmfdb/ecnf/WebEllipticCurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@ def EC_R_plot_zone(f,h):
return plot_zone_union(EC_R_plot_zone_piece(f,h,ZF[0],ZF[1]),EC_R_plot_zone_piece(f,h,ZF[2],2*xi-ZF[2]))
return EC_R_plot_zone_piece(f,h,ZF[0],2*ZF[1]-ZF[0])

def EC_R_plot(ainvs, xmin, xmax, ymin, ymax, colour, legend):
def EC_R_plot(ainvs, xmin, xmax, ymin, ymax, color, legend):
x = var('x')
y = var('y')
c = (xmin + xmax) / 2
d = (xmax - xmin)
return implicit_plot(y ** 2 + ainvs[0] * x * y + ainvs[2] * y - x ** 3 - ainvs[1] * x ** 2 - ainvs[3] * x - ainvs[4], (x, xmin, xmax), (y, ymin, ymax), plot_points=500, aspect_ratio="automatic", color=colour) + plot(0, xmin=c - 1e-5 * d, xmax=c + 1e-5 * d, ymin=ymin, ymax=ymax, aspect_ratio="automatic", color=colour, legend_label=legend) # Add an extra plot outside the visible frame because implicit plots are buggy: their legend does not show (https://trac.sagemath.org/ticket/15903)
return implicit_plot(y ** 2 + ainvs[0] * x * y + ainvs[2] * y - x ** 3 - ainvs[1] * x ** 2 - ainvs[3] * x - ainvs[4], (x, xmin, xmax), (y, ymin, ymax), plot_points=500, aspect_ratio="automatic", color=color) + plot(0, xmin=c - 1e-5 * d, xmax=c + 1e-5 * d, ymin=ymin, ymax=ymax, aspect_ratio="automatic", color=color, legend_label=legend) # Add an extra plot outside the visible frame because implicit plots are buggy: their legend does not show (https://trac.sagemath.org/ticket/15903)

Rx = PolynomialRing(RDF,'x')

Expand All @@ -238,7 +238,7 @@ def EC_nf_plot(K, ainvs, base_field_gen_name):
xmax = max([r[1] for r in R])
ymin = min([r[2] for r in R])
ymax = max([r[3] for r in R])
cols = rainbow(n1) # Default choice of n colours
cols = rainbow(n1) # Default choice of n colors
# However, these tend to be too pale, so we preset them for small values of n
if n1 == 1:
cols = ["blue"]
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/ecnf/test_ecnf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_j(self):
L = self.tc.get('/EllipticCurve/2.0.4.1/5525.5/b/9')
assert '226834389543384' in L.get_data(as_text=True)
assert '1490902050625' in L.get_data(as_text=True)
L = self.tc.get('EllipticCurve/2.2.89.1/81.1/a/1') # Test factorisation
L = self.tc.get('EllipticCurve/2.2.89.1/81.1/a/1') # Test factorization
assert '8798344145175011328000' in L.get_data(as_text=True)

def test_download(self):
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/elliptic_curves/elliptic_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def elliptic_curve_search(info, query):
info['galois_image'] = ','.join(modell_labels + elladic_labels)
query['modell_images'] = { '$contains': modell_labels }

# The button which used to be labelled Optimal only no/yes"
# The button which used to be labeled Optimal only no/yes"
# (default: no) has been renamed "Curves per isogeny class
# all/one" (default: all). When this option is "one" we only list
# one curve in each class, currently choosing the curve with
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/elliptic_curves/isog_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def make_class(self):
from sage.matrix.all import Matrix
M = classdata['isogeny_matrix']

# permute rows/cols to match labelling: the rows/cols in the
# permute rows/cols to match labeling: the rows/cols in the
# ec_classdata table are with respect to LMFDB ordering.
if self.label_type == 'Cremona':
def perm(i): return next(c for c in self.curves if c['Cnumber'] == i+1)['lmfdb_number']-1
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/elliptic_curves/templates/congruent_number_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ <h3>Distribution of &#1064;</h3>
Over half the curves ($574,290$) have trivial &#1064;. The largest value seen is $7396 = 86^2$, for $n=719057$.
</p>

<h2>Credit and acknowledgements</h2>
<h2>Credit and acknowledgments</h2>

<p>
The data files were created by Randall L. Rathbun on February 14, 2013
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/elliptic_curves/templates/ec-isoclass.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h2>{{ KNOWL('ec.isogeny_matrix',title='Isogeny matrix') }}</h2>
<h2> {{ KNOWL('ec.isogeny_graph', title='Isogeny graph') }} </h2>
{{ place_code('isogeny_graph') }}
{% if info.class_size > 1 %}
<p>The vertices are labelled with {{info.label_type}} labels, and the {{ KNOWL('ec.q.optimal', title='\( \Gamma_0(N) \)-optimal') }} curve is highlighted in blue.</p>
<p>The vertices are labeled with {{info.label_type}} labels, and the {{ KNOWL('ec.q.optimal', title='\( \Gamma_0(N) \)-optimal') }} curve is highlighted in blue.</p>
{% endif %}
<div id="isogeny-graph"></div>

Expand Down
6 changes: 3 additions & 3 deletions lmfdb/elliptic_curves/test_ell_curves.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ def test_torsion_growth(self):

def test_990h(self):
"""
Test the exceptional 990h/990.i optimal labelling.
Test the exceptional 990h/990.i optimal labeling.
"""
# The isogeny class 990h (Cremona labelling) or 990.i (LMFDB labelling)
# has a different Gamma-optimal curve in its labelling than all others.
# The isogeny class 990h (Cremona labeling) or 990.i (LMFDB labeling)
# has a different Gamma-optimal curve in its labeling than all others.
L = self.tc.get('/EllipticCurve/Q/990/i/')
row = '\n'.join([
'<td class="center"><a href="/EllipticCurve/Q/990h3/">990h3</a></td>',
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/elliptic_curves/web_ec.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def red(p):
# Optimality

# The optimal curve in the class is the curve whose Cremona
# label ends in '1' except for '990h' which was labelled
# label ends in '1' except for '990h' which was labeled
# wrongly long ago. This is proved for N up to
# OPTIMALITY_BOUND (and when there is only one curve in an
# isogeny class, obviously) and expected for all N.
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/groups/abstract/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def ctx_abstract_groups():

def learnmore_list():
return [
("Source and acknowledgements", url_for(".how_computed_page")),
("Source and acknowledgments", url_for(".how_computed_page")),
("Completeness of the data", url_for(".completeness_page")),
("Reliability of the data", url_for(".reliability_page")),
("Abstract group labeling", url_for(".labels_page")),
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/groups/abstract/web_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -3050,7 +3050,7 @@ def create_lie_code_snippets(self, code, top_lie, used_lie_gens):
families['sage'] = ['GL','SL','PSL','PGL','Sp','SO','SU','PSp','PSU','Orth','Unitary','PU']
families['oscar'] = ['GL','SL','Sp','SO','SU','Orth','Unitary']

# Prioritise displaying the first Lie type representation which is implemented in the language
# Prioritize displaying the first Lie type representation which is implemented in the language
for lie_rep in self.lie_representations:
nLie, qLie = ZZ(lie_rep['d']), ZZ(lie_rep['q'])
lie_rep_key = (lie_rep['family'], nLie, qLie)
Expand Down
4 changes: 2 additions & 2 deletions lmfdb/hecke_algebras/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def hecke_algebras_render_webpage():
weight_list = list(range(2, 20, 2))
lvl_list_endpoints = [1, 100, 200, 300, 400, 500]
lvl_list = ["%s-%s" % (start, end - 1) for start, end in zip(lvl_list_endpoints[:-1], lvl_list_endpoints[1:])]
favourite_list = ["1.12.1","139.2.1","239.2.1","9.16.1"]
info = {'lvl_list': lvl_list,'wt_list': weight_list, 'favourite_list': favourite_list}
favorite_list = ["1.12.1","139.2.1","239.2.1","9.16.1"]
info = {'lvl_list': lvl_list,'wt_list': weight_list, 'favorite_list': favorite_list}
credit = hecke_algebras_credit
t = 'Hecke algebras'
bread = [('HeckeAlgebra', url_for(".hecke_algebras_render_webpage"))]
Expand Down
4 changes: 2 additions & 2 deletions lmfdb/hecke_algebras/templates/hecke_algebras-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ <h2> Browse {{ KNOWL('hecke_algebra.definition', title='Hecke Algebras') }} for
</p>

<p>
Some of our favourite {{ KNOWL('hecke_algebra.definition', title='Hecke Algebras') }}:
{% for rnge in info.favourite_list %}
Some of our favorite {{ KNOWL('hecke_algebra.definition', title='Hecke Algebras') }}:
{% for rnge in info.favorite_list %}
<a href="?label={{rnge}}">&nbsp; {{rnge}} &nbsp;</a>
{% endfor %}
</p>
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/hilbert_modular_forms/web_HMF.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, dbdata=None, label_or_field=None, L=None):
- L: a string representing one newform from a raw data file

If dbdata is not None then it is expected to be a database
entry from which the class is initialised. If dbdata is None,
entry from which the class is initialized. If dbdata is None,
then a form is constructed from the field label or field and
data string given.

Expand Down
2 changes: 1 addition & 1 deletion lmfdb/knowledge/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def handleMatch(self, m):
return "{{ KNOWL('%s') }}" % kid


# Initialise the markdown converter, sending a wikilink [[topic]] to the L-functions wiki
# Initialize the markdown converter, sending a wikilink [[topic]] to the L-functions wiki
md = markdown.Markdown(extensions=['markdown.extensions.wikilinks'],
extension_configs={'wikilinks': [('base_url', 'https://wiki.l-functions.org/')]})
# priority above escape (180), but below backtick (190)
Expand Down
6 changes: 3 additions & 3 deletions lmfdb/lfunctions/HodgeTransformations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# A file for passing between
# * Hodge structures and Gamma Factors (motivic normalisation)
# * different normalisation (GammaFactors vs SelbergParameters)
# * Hodge structures and Gamma Factors (motivic normalization)
# * different normalization (GammaFactors vs SelbergParameters)

# Copied from Magma code largely for GammaFactors and HodgeStructure
# Format of HodgeStructure is <p,q,eps>, where eps is 2 when p!=q (else 0,1)
Expand Down Expand Up @@ -87,7 +87,7 @@ def tensor_hodge(H1, H2):
return H


def hodge_to_selberg(hodge): # normalised for s->(1-s)
def hodge_to_selberg(hodge): # normalized for s->(1-s)
"""
Takes a Hodge structure, returns a
weight, mu, nu
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/lfunctions/Lfunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ def __init__(self, **args):

li = self.tp.an_list(upper_bound=self.numcoeff)
for n in range(1,len(li)):
# now renormalise it for s <-> 1-s as the functional equation
# now renormalize it for s <-> 1-s as the functional equation
li[n] /= sqrt(float(n))
self.dirichlet_coefficients = li

Expand Down
2 changes: 1 addition & 1 deletion lmfdb/lfunctions/LfunctionLcalc.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def createLcalcfile_ver2(L, url):
### that the 0-th entry is also listed.
###
### Complex numbers should be entered, as usual as a pair of numbers, separated
### by a comma. If no complex numbers appear amongst the Dirichlet coefficients,
### by a comma. If no complex numbers appear among the Dirichlet coefficients,
### lcalc will assume the L-function is self-dual."""
thefile += "\n\n"

Expand Down
4 changes: 2 additions & 2 deletions lmfdb/lfunctions/LfunctionPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def colorsForWeights(num_weights):
ans = svgBegin()
ans += "<g transform='translate(10 0)'>\n" # give ourselves a little space

cfw = colorsForWeights(max_k) # pick our colour palette we need colors for weights 1 (at some point) to max_k inclusive
cfw = colorsForWeights(max_k) # pick our color palette we need colors for weights 1 (at some point) to max_k inclusive

for p in points:
x = str(p[0])
Expand Down Expand Up @@ -804,7 +804,7 @@ def paintSvgHoloGeneral(Nmin, Nmax, kmin, kmax, imagewidth, imageheight):
# Symmetry types: +1 or -1
symmetrytype = [1, -1]
for signtmp in symmetrytype:
# urlinfo['space']['orbits'] = [ [] for label in thelabels ] # initialise
# urlinfo['space']['orbits'] = [ [] for label in thelabels ] # initialize
# an empty list for each orbit
urlinfo['space']['orbits'] = []
for label in thelabels: # looping over Galois orbit: one label per orbit
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/modlmf/templates/modlmf-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h2> Browse {{ KNOWL('modlmf.definition', title='mod &#x2113; modular forms') }}
{% endfor %}
</p>
<p>
Some of our favourite {{ KNOWL('modlmf.definition', title="mod &#x2113; modular forms") }}:
Some of our favorite {{ KNOWL('modlmf.definition', title="mod &#x2113; modular forms") }}:
{% for rnge in info.label_list%}
<a href="?label={{rnge}}">&nbsp;{{rnge}}&nbsp;</a>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/nfutils/psort.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://github.com/JohnCremona/sorting
#
# This file is code/psort.py from there. It implements the sorting
# and labelling of ideals (including prime ideals).
# and labeling of ideals (including prime ideals).
#
from sage.all import ZZ, GF, Set, prod, srange, flatten, cartesian_product_iterator

Expand Down
Loading
Loading