Skip to content

Commit

Permalink
two more columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jwj61 committed Dec 16, 2024
1 parent d063652 commit 79e64e0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lmfdb/local_fields/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ def formatbracketcol(blist):
return 'not computed'
return f'${blist}$'

def intcol(j):
if not j:
return 'not computed'
return f'${j}$'

lf_columns = SearchColumns([
LinkCol("label", "lf.field.label", "Label", url_for_label),
MathCol("n", "lf.degree", "$n$", short_title="degree", default=False),
Expand All @@ -323,8 +328,8 @@ def formatbracketcol(blist):
["n", "gal", "cache"],
galcolresponse,
apply_download=lambda n, t, cache: [n, t]),
MathCol("u", "lf.unramified_degree", "$u$", short_title="unramified degree", default=False),
MathCol("t", "lf.tame_degree", "$t$", short_title="tame degree", default=False),
ProcessedCol("u", "lf.unramified_degree", "$u$", intcol, short_title="unramified degree", default=False),
ProcessedCol("t", "lf.tame_degree", "$t$", intcol, short_title="tame degree", default=False),
ListCol("visible", "lf.visible_slopes", "Visible slopes",
show_slopes2, default=lambda info: info.get("visible"), mathmode=True),
MultiProcessedCol("slopes", "lf.slope_content", "Slope content",
Expand Down

0 comments on commit 79e64e0

Please sign in to comment.