Skip to content

Commit 69349ee

Browse files
committed
Deal with local algebras when Galois groups have not been computed
1 parent b6f9e1a commit 69349ee

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

lmfdb/number_fields/number_field.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,11 @@ def render_field_webpage(args):
509509
myurl = url_for('local_fields.by_label', label=lab)
510510
if mm[3]*mm[2] == 1:
511511
lab = r'$\Q_{%s}$' % str(p)
512-
loc_alg += '<td><a href="%s">%s</a></td><td>$%s$</td><td>$%d$</td><td>$%d$</td><td>$%d$</td><td>%s</td><td>$%s$</td>' % (myurl,lab,mm[1],mm[2],mm[3],mm[4],mm[5],show_slope_content(mm[8],mm[6],mm[7]))
512+
if mm[8]:
513+
mysc = '$'+show_slope_content(mm[8],mm[6],mm[7])+'$'
514+
else:
515+
mysc = 'not computed'
516+
loc_alg += '<td><a href="%s">%s</a></td><td>$%s$</td><td>$%d$</td><td>$%d$</td><td>$%d$</td><td>%s</td><td>%s</td>' % (myurl,lab,mm[1],mm[2],mm[3],mm[4],mm[5],mysc)
513517
loc_alg += '</tr>\n'
514518
loc_alg += '</tbody></table>\n'
515519

lmfdb/number_fields/web_number_field.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,14 @@ def get_local_algebras(self):
982982
LF = db.lf_fields.lookup(lab)
983983
f = latex(R(LF['coeffs']))
984984
p = LF['p']
985+
gglabel=LF.get('galois_label', None)
986+
if gglabel:
987+
gglabel=transitive_group_display_knowl(gglabel)
988+
else:
989+
gglabel='not computed'
985990
thisdat = [lab, f, LF['e'], LF['f'], LF['c'],
986-
transitive_group_display_knowl(LF['galois_label']),
987-
LF['t'], LF['u'], LF['slopes']]
991+
gglabel,
992+
LF.get('t',None), LF.get('u',None), LF.get('slopes',None)]
988993
if str(p) not in local_algebra_dict:
989994
local_algebra_dict[str(p)] = [thisdat]
990995
else:

0 commit comments

Comments
 (0)