Skip to content

Commit d014fdf

Browse files
authored
Merge pull request #6285 from fchapoton/fixes_for_E221
some fixes for E221
2 parents 55bf75b + 0f46df1 commit d014fdf

File tree

16 files changed

+49
-42
lines changed

16 files changed

+49
-42
lines changed

lmfdb/bianchi_modular_forms/bianchi_modular_form.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def download_bmf_magma(**args):
410410
except ValueError:
411411
return "Bianchi newform not found"
412412

413-
hecke_pol = f.hecke_poly_obj
413+
hecke_pol = f.hecke_poly_obj
414414
hecke_eigs = f.hecke_eigs
415415

416416
F = WebNumberField(f.field_label)
@@ -452,7 +452,7 @@ def download_bmf_magma(**args):
452452
outstr += 'for i in [1..#heckeEigenvaluesList] do\n heckeEigenvalues[primes[i]] := heckeEigenvaluesList[i];\nend for;\n'
453453

454454
if f.have_AL:
455-
AL_eigs = f.AL_table_data
455+
AL_eigs = f.AL_table_data
456456
outstr += '\nALEigenvalues := AssociativeArray();\n'
457457
for s in AL_eigs:
458458
outstr += 'ALEigenvalues[ideal<ZF | {}>] := {};\n'.format(set(s[0]), s[1])
@@ -540,7 +540,7 @@ def download_bmf_sage(**args):
540540
except ValueError:
541541
return "Bianchi newform not found"
542542

543-
hecke_pol = f.hecke_poly_obj
543+
hecke_pol = f.hecke_poly_obj
544544
hecke_eigs = f.hecke_eigs
545545

546546
F = WebNumberField(f.field_label)
@@ -580,10 +580,10 @@ def download_bmf_sage(**args):
580580
outstr += 'for i in range(len(hecke_eigenvalues_array)):\n hecke_eigenvalues[primes[i]] = hecke_eigenvalues_array[i]\n\n'
581581

582582
if f.have_AL:
583-
AL_eigs = f.AL_table_data
583+
AL_eigs = f.AL_table_data
584584
outstr += 'AL_eigenvalues = {}\n'
585585
for s in AL_eigs:
586-
outstr += 'AL_eigenvalues[ZF.ideal(%s)] = %s\n' % (s[0],s[1])
586+
outstr += 'AL_eigenvalues[ZF.ideal(%s)] = %s\n' % (s[0], s[1])
587587
else:
588588
outstr += 'AL_eigenvalues ="not known"\n'
589589

lmfdb/characters/web_character.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def to_dict(self):
108108
d = {}
109109
logger.info('[DC] start collecting data for %s' % self.__class__.__name__)
110110
for k in self._keys:
111-
d[k] = getattr(self,k,None)
111+
d[k] = getattr(self, k, None)
112112
if d[k] is None:
113113
logger.debug('[DC warning] ### key[%s] is None' % k)
114114
logger.info('[DC] collected for %s' % self.__class__.__name__)
@@ -121,7 +121,7 @@ def texlogvalue(x, tag=False):
121121
if not isinstance(x, Rational):
122122
return '1'
123123
d = int(x.denom())
124-
n = int(x.numer()) % d
124+
n = int(x.numer()) % d
125125
if d == 1:
126126
s = '1'
127127
elif n == 1 and d == 2:

lmfdb/classical_modular_forms/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,12 +798,13 @@ def newform_parse(info, query):
798798
parse_noop(info, query, 'projective_image', func=str.upper)
799799
parse_ints(info, query, 'artin_degree', name="Artin degree")
800800

801+
801802
def newspace_parse(info, query):
802803
for key, display in newform_only_fields.items():
803804
if key in info:
804805
msg = "%s not valid when searching for spaces"
805806
flash_error(msg, display)
806-
raise ValueError(msg % display)
807+
raise ValueError(msg % display)
807808
if 'dim' not in info and 'hst' not in info:
808809
# When coming from browse page, add dim condition to only show non-empty spaces
809810
info['dim'] = '1-'

lmfdb/ecnf/WebEllipticCurve.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def make_E(self):
399399
self.fact_disc = self.disc
400400
self.fact_disc_norm = str(Dnorm)
401401
else:
402-
self.fact_disc = latex_factorization(badprimes, disc_ords)
402+
self.fact_disc = latex_factorization(badprimes, disc_ords)
403403
self.fact_disc_norm = latex_factorization(badnorms, disc_ords, sign=signDnorm)
404404

405405
if self.is_minimal:
@@ -411,10 +411,10 @@ def make_E(self):
411411

412412
self.mindisc_norm = web_latex(Dmin_norm)
413413
if Dmin_norm in [1,-1]: # since the factorization of (1) displays as "1"
414-
self.fact_mindisc = self.mindisc
414+
self.fact_mindisc = self.mindisc
415415
self.fact_mindisc_norm = self.mindisc_norm
416416
else:
417-
self.fact_mindisc = latex_factorization(badprimes, mindisc_ords)
417+
self.fact_mindisc = latex_factorization(badprimes, mindisc_ords)
418418
self.fact_mindisc_norm = latex_factorization(badnorms, mindisc_ords, sign=signDnorm)
419419

420420
j = self.field.parse_NFelt(self.jinv)

lmfdb/elliptic_curves/isog_class.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def make_class(self):
7777
# changing one line in this file (defining OPTIMALITY_BOUND)
7878
# without changing the data.
7979

80-
self.cremona_bound = CREMONA_BOUND
80+
self.cremona_bound = CREMONA_BOUND
8181
self.optimality_bound = OPTIMALITY_BOUND
8282
self.optimality_known = (self.conductor < OPTIMALITY_BOUND) or ((self.conductor < CREMONA_BOUND) and ((self.optimality == 1) or (self.Ciso == '990h')))
8383
self.optimal_label = self.Clabel if self.label_type == 'Cremona' else self.lmfdb_label

lmfdb/elliptic_curves/web_ec.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
CP_URL_PREFIX = "https://mathstats.uncg.edu/sites/pauli/congruence/" # Needs tto be changed whenever Cummins and Pauli move their data
2020

2121
OPTIMALITY_BOUND = 400000 # optimality of curve no. 1 in class (except class 990h) only proved in all cases for conductor less than this
22-
CREMONA_BOUND = 500000 # above this bound we have nor Cremona labels (no Clabel, Ciso, Cnumber), no Manin constant or optimality info.
22+
CREMONA_BOUND = 500000 # above this bound we have nor Cremona labels (no Clabel, Ciso, Cnumber), no Manin constant or optimality info.
2323

2424
cremona_label_regex = re.compile(r'(\d+)([a-z]+)(\d*)')
2525
lmfdb_label_regex = re.compile(r'(\d+)\.([a-z]+)(\d*)')
@@ -438,7 +438,7 @@ def red(p):
438438
# Isogeny degrees:
439439

440440
cond, iso, num = split_lmfdb_label(lmfdb_label)
441-
self.class_deg = classdata['class_deg']
441+
self.class_deg = classdata['class_deg']
442442
self.one_deg = ZZ(self.class_deg).is_prime()
443443
isodegs = [str(d) for d in self.isogeny_degrees if d > 1]
444444
if len(isodegs) < 3:
@@ -625,16 +625,16 @@ def make_mwbsd(self):
625625

626626
try:
627627
mwbsd['rank'] = self.rank
628-
mwbsd['reg'] = self.regulator
629-
mwbsd['sha'] = self.sha
628+
mwbsd['reg'] = self.regulator
629+
mwbsd['sha'] = self.sha
630630
mwbsd['sha2'] = latex_sha(self.sha)
631631
mwbsd['sha_is_exact'] = self.rank == 0 # see Issue #5872
632632
for num in ['reg', 'special_value', 'real_period', 'area']:
633-
mwbsd[num] = RR(mwbsd[num])
633+
mwbsd[num] = RR(mwbsd[num])
634634
except AttributeError:
635635
mwbsd['rank'] = '?'
636-
mwbsd['reg'] = '?'
637-
mwbsd['sha'] = '?'
636+
mwbsd['reg'] = '?'
637+
mwbsd['sha'] = '?'
638638
mwbsd['sha2'] = '?'
639639
mwbsd['regsha'] = ( mwbsd['special_value'] * self.torsion**2 ) / ( mwbsd['tamagawa_product'] * mwbsd['real_period'] )
640640
if r <= 1:

lmfdb/groups/abstract/verify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_small_gps(sample_gp):
2828
if sample_gp['number_subgroup_classes']:
2929
SubLat = libgap.LatticeSubgroups(G)
3030
Cons = libgap.ConjugacyClassesSubgroups(SubLat)
31-
print ("Number of subgroup classes match: " + str(libgap.Size(Cons) == sample_gp['number_subgroup_classes']))
31+
print("Number of subgroup classes match: " + str(libgap.Size(Cons) == sample_gp['number_subgroup_classes']))
3232
if sample_gp['number_normal_subgroups']:
3333
NormLat = libgap.NormalSubgroups(G)
3434
print("Number of normal subgroups match: " + str(libgap.Size(NormLat) == sample_gp['number_normal_subgroups']))

lmfdb/groups/abstract/web_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,7 @@ def print_elt(vec):
21152115
if j == u:
21162116
if e == 1:
21172117
if first_pass:
2118-
s = var_name(i) + s
2118+
s = var_name(i) + s
21192119
first_pass = False
21202120
else:
21212121
s = var_name(i) + '*' + s

lmfdb/groups/glnQ/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def group_search(info, query):
131131
parse_ints(info, query, 'order', 'order')
132132
parse_ints(info, query, 'dim', 'dim')
133133

134+
134135
#Writes individual pages
135136
def render_glnQ_group(args):
136137
info = {}
@@ -141,7 +142,7 @@ def render_glnQ_group(args):
141142
info['groupname'] = '${}$'.format(group_names_pretty(info['group']))
142143
info['groupknowl'] = abstract_group_display_knowl(info['group'], info['groupname'])
143144

144-
title = r'$\GL('+str(info['dim'])+r',\Q)$ subgroup ' + label
145+
title = r'$\GL('+str(info['dim']) + r',\Q)$ subgroup ' + label
145146

146147
prop = [('Label', '%s' % label),
147148
('Order', r'\(%s\)' % info['order']),

lmfdb/hilbert_modular_forms/hilbert_modular_form.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ def download_hmf_magma(**args):
213213
F = WebNumberField(f['field_label'])
214214
F_hmf = get_hmf_field(f['field_label'])
215215

216-
hecke_pol = f['hecke_polynomial']
216+
hecke_pol = f['hecke_polynomial']
217217
hecke_eigs = [str(eig) for eig in f['hecke_eigenvalues']]
218-
AL_eigs = f['AL_eigenvalues']
218+
AL_eigs = f['AL_eigenvalues']
219219

220220
outstr = '/*\n This code can be loaded, or copied and pasted, into Magma.\n'
221221
outstr += ' It will load the data associated to the HMF, including\n'
@@ -326,9 +326,9 @@ def download_hmf_sage(**args):
326326
if f is None:
327327
return "No such form"
328328

329-
hecke_pol = f['hecke_polynomial']
329+
hecke_pol = f['hecke_polynomial']
330330
hecke_eigs = [str(eig) for eig in f['hecke_eigenvalues']]
331-
AL_eigs = f['AL_eigenvalues']
331+
AL_eigs = f['AL_eigenvalues']
332332

333333
F = WebNumberField(f['field_label'])
334334
F_hmf = get_hmf_field(f['field_label'])
@@ -446,10 +446,10 @@ def render_hmf_webpage(**args):
446446
numeigs = 20
447447
info['numeigs'] = numeigs
448448

449-
hecke_pol = data['hecke_polynomial']
450-
eigs = [str(eig) for eig in data['hecke_eigenvalues']]
449+
hecke_pol = data['hecke_polynomial']
450+
eigs = [str(eig) for eig in data['hecke_eigenvalues']]
451451
eigs = eigs[:min(len(eigs), numeigs)]
452-
AL_eigs = data['AL_eigenvalues']
452+
AL_eigs = data['AL_eigenvalues']
453453

454454
primes = hmf_field['primes']
455455
n = min(len(eigs), len(primes))

0 commit comments

Comments
 (0)