diff --git a/lmfdb/local_fields/main.py b/lmfdb/local_fields/main.py
index ec353958bd..09184ca95b 100644
--- a/lmfdb/local_fields/main.py
+++ b/lmfdb/local_fields/main.py
@@ -91,13 +91,16 @@ def local_field_data(label):
nicename = ' = ' + prettyname(f)
ans = '$p$-adic field %s%s
' % (label, nicename)
ans += r'Extension of $\Q_{%s}$ defined by %s
' % (str(f['p']),web_latex(coeff_to_poly(f['coeffs'])))
- gt = int(f['galois_label'].split('T')[1])
gn = f['n']
ans += 'Degree: %s
' % str(gn)
ans += 'Ramification index $e$: %s
' % str(f['e'])
ans += 'Residue field degree $f$: %s
' % str(f['f'])
ans += 'Discriminant ideal: $(p^{%s})$
' % str(f['c'])
- ans += 'Galois group $G$: %s
' % group_pretty_and_nTj(gn, gt, True)
+ if 'galois_label' in f:
+ gt = int(f['galois_label'].split('T')[1])
+ ans += 'Galois group $G$: %s
' % group_pretty_and_nTj(gn, gt, True)
+ else:
+ ans += 'Galois group $G$: not computed
'
ans += '
- {{ KNOWL('nf.galois_group', title='Galois group')}}: | {{info.gal|safe}} |
- {{ KNOWL('lf.inertia_group', title='Inertia group')}}: | {{info.inertia|safe}} |
- {{ KNOWL('lf.wild_inertia_group', title='Wild inertia group')}}: | {{info.wild_inertia|safe}} |
- {{ KNOWL('lf.unramified_degree', title='Unramified degree')}}: | ${{info.u}}$ |
- {{ KNOWL('lf.tame_degree', title='Tame degree')}}: | ${{info.t}}$ |
- {{ KNOWL('lf.wild_slopes', title='Wild slopes')}}: | {{info.slopes}} |
- {{ KNOWL('lf.galois_mean_slope', title='Galois mean slope')}}: | ${{info.gms}}$ |
+ {{ KNOWL('nf.galois_group', title='Galois group')}}: |
+ {% if info.gal %}
+ {{info.gal|safe}}
+ {% else %}
+ Not computed
+ {% endif %}
+ |
+ {{ KNOWL('lf.inertia_group', title='Inertia group')}}: |
+ {% if info.inertia %}
+ {{info.inertia|safe}}
+ {% else %}
+ Not computed
+ {% endif %}
+ |
+ {{ KNOWL('lf.wild_inertia_group', title='Wild inertia group')}}: |
+ {% if info.wild_inertia %}
+ {{info.wild_inertia|safe}}
+ {% else %}
+ Not computed
+ {% endif %}
+ |
+ {{ KNOWL('lf.unramified_degree', title='Unramified degree')}}: |
+ {% if info.u %}
+ ${{info.u}}$
+ {% else %}
+ Not computed
+ {% endif %}
+ |
+ {{ KNOWL('lf.tame_degree', title='Tame degree')}}: |
+ {% if info.t %}
+ ${{info.t}}$
+ {% else %}
+ Not computed
+ {% endif %}
+ |
+ {{ KNOWL('lf.wild_slopes', title='Wild slopes')}}: |
+ {% if info.slopes %}
+ {{info.slopes}}
+ {% else %}
+ Not computed
+ {% endif %}
+ |
+ {{ KNOWL('lf.galois_mean_slope', title='Galois mean slope')}}: |
+ {% if info.gms %}
+ ${{info.gms}}$
+ {% else %}
+ Not computed
+ {% endif %}
+ |
{{KNOWL('lf.galois_splitting_model', title='Galois splitting model')}}: | {{info.gsm|safe}} |