Skip to content

Commit

Permalink
Merge pull request #5707 from AndrewVSutherland/master
Browse files Browse the repository at this point in the history
Fix CMF Gamma1 pages
  • Loading branch information
AndrewVSutherland authored Oct 27, 2023
2 parents e5dc41f + 930e786 commit ccb85de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h2> Dimensions </h2>

{% endif %}

{% if space.new_dim > 0 %}
{% if space.dim > 0 %}
{% if space.has_trace_form %}
<script>
function show_qexp(qstyle) {
Expand Down Expand Up @@ -132,6 +132,8 @@ <h2 id="qexp-anchor"> {{ KNOWL('cmf.space_trace_form', title='Trace form') }} </
</div>
{% endif %}

{% if space.decomp %}

<h2> {{ KNOWL('cmf.decomposition.new.gamma1', title='Decomposition') }} of \({{ space.new_latex() }}\)</h2>

<p> We only show spaces with {{ KNOWL('character.dirichlet.parity',title="odd parity" if space.weight_parity == -1 else "even parity")}}, since no modular forms exist when this condition is not satisfied. Within each space \( S_k^{\mathrm{new}}(N, \chi) \) we list the newforms together with their dimension.</p>
Expand Down Expand Up @@ -169,9 +171,11 @@ <h2> {{ KNOWL('cmf.decomposition.new.gamma1', title='Decomposition') }} of \({{
{% endif %}
{% endif %}

{% endif %}

<!-- Definitions for coefficient fields -->

{% if space.old_dim > 0 %}
{% if space.dim_grid.S.old > 0 %}
<h2> {{ KNOWL('cmf.decomposition.old.gamma1', title='Decomposition') }} of \({{ space.old_latex() }}\) into {{ KNOWL('cmf.oldspace',title='lower level spaces')}}</h2>

<div class="center">
Expand Down
14 changes: 3 additions & 11 deletions lmfdb/classical_modular_forms/web_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ def from_db(data):

class WebNewformSpace():
def __init__(self, data):
# Need to set mf_dim, eis_dim, cusp_dim, new_dim, old_dim
self.__dict__.update(data)
self.factored_level = web_latex_factored_integer(self.level, equals=True)
self.has_projective_image_types = all(typ+'_dim' in data for typ in ('dihedral','a4','s4','a5'))
Expand Down Expand Up @@ -377,14 +376,7 @@ def __init__(self, level, weight):
newspaces = list(db.mf_newspaces.search({'level':level, 'weight':weight, 'char_parity': self.weight_parity}))
oldspaces = db.mf_gamma1_subspaces.search({'level':level, 'sub_level':{'$ne':level}, 'weight':weight}, ['sub_level','sub_mult'])
self.oldspaces = [(old['sub_level'],old['sub_mult']) for old in oldspaces]
self.dim_grid = sum(DimGrid.from_db(space) for space in newspaces) if newspaces else DimGrid()
#self.mf_dim = sum(space['mf_dim'] for space in newspaces)
#self.eis_dim = sum(space['eis_dim'] for space in newspaces)
#self.eis_new_dim = sum(space['eis_new_dim'] for space in newspaces)
#self.eis_old_dim = self.eis_dim - self.eis_new_dim
#self.cusp_dim = sum(space['cusp_dim'] for space in newspaces)
self.new_dim = sum(space['dim'] for space in newspaces)
self.old_dim = sum((space['cusp_dim']-space['dim']) for space in newspaces)
self.dim_grid = DimGrid.from_db(data)
self.decomp = []
newforms = list(db.mf_newforms.search({'level':level, 'weight':weight}, ['label', 'space_label', 'dim', 'level', 'char_orbit_label', 'hecke_orbit', 'char_degree']))
self.has_uncomputed_char = False
Expand All @@ -396,12 +388,12 @@ def __init__(self, level, weight):
self.decomp.append((space, [form for form in newforms if form['space_label'] == space['label']]))
self.plot = db.mf_gamma1_portraits.lookup(self.label, projection="portrait")
self.properties = [('Label',self.label),]
if self.plot is not None and self.new_dim > 0:
if self.plot is not None and self.dim > 0:
self.properties += [(None, '<a href="{0}"><img src="{0}" width="200" height="200"/></a>'.format(self.plot))]
self.properties +=[
('Level',str(self.level)),
('Weight',str(self.weight)),
('Dimension',str(self.new_dim))
('Dimension',str(self.dim))
]
if self.num_spaces is not None:
self.properties.append(('Nonzero newspaces',str(self.num_spaces)))
Expand Down

0 comments on commit ccb85de

Please sign in to comment.