From 2644f6ee974c071d12dd6c6ef69935ed25a13f5f Mon Sep 17 00:00:00 2001 From: AndrewVSutherland Date: Thu, 2 May 2024 15:47:09 -0400 Subject: [PATCH] a few bugfixes --- lmfdb/classical_modular_forms/templates/cmf_space.html | 2 +- lmfdb/classical_modular_forms/web_space.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lmfdb/classical_modular_forms/templates/cmf_space.html b/lmfdb/classical_modular_forms/templates/cmf_space.html index 0e0d34a9d6..e16d9a9046 100644 --- a/lmfdb/classical_modular_forms/templates/cmf_space.html +++ b/lmfdb/classical_modular_forms/templates/cmf_space.html @@ -187,7 +187,7 @@

{{ KNOWL('cmf.decomposition.new.gamma0chi', title='Decomposition') }} of \(

{{ KNOWL('cmf.decomposition.old.gamma0chi', title='Decomposition') }} of \({{ space.old_latex() }}\) into {{ KNOWL('cmf.oldspace',title='lower level spaces')}}

- \( {{ space.old_latex() }} \cong \) {{ space.oldspace_decomposition() | safe }} + \( {{ space.old_latex() }} \simeq \) {{ space.oldspace_decomposition() | safe }}
{% endif %} diff --git a/lmfdb/classical_modular_forms/web_space.py b/lmfdb/classical_modular_forms/web_space.py index dd80a32857..973aa7e983 100644 --- a/lmfdb/classical_modular_forms/web_space.py +++ b/lmfdb/classical_modular_forms/web_space.py @@ -240,7 +240,7 @@ def QDimensionNewEisensteinForms(chi, k): # The Q-dimension of the new subspace of E_k(N,chi), the space of Eisenstein series of weight k, level N, and character chi, where N is the modulus of chi. from sage.all import prod assert k > 0, "The weight k must be a positive integer" - if ((k%2) == 1) != (chi['parity'] == -1): + if ((k%2) == 1) == chi['is_even']: return 0 N = ZZ(chi['modulus']) M = ZZ(chi['conductor']) @@ -295,9 +295,8 @@ def make_oldspace_data(newspace_label, char_conductor, prim_orbit_index): level = int(newspace_label.split('.')[0]) weight = int(newspace_label.split('.')[1]) sub_level_list = [sub_level for sub_level in ZZ(level).divisors() if (sub_level % char_conductor == 0) and sub_level != level] - sub_chars = list(db.char_dirichlet.search({'modulus':{'$in':sub_level_list}, 'primitive_orbit':prim_orbit_index})) + sub_chars = list(db.char_dirichlet.search({'modulus':{'$in':sub_level_list}, 'conductor':char_conductor, 'primitive_orbit':prim_orbit_index})) sub_chars = {char['modulus'] : char for char in sub_chars} - oldspaces = [] for sub_level in sub_level_list: entry = {} @@ -309,7 +308,6 @@ def make_oldspace_data(newspace_label, char_conductor, prim_orbit_index): # only include subspaces with cusp forms # https://pari.math.u-bordeaux.fr/pub/pari/manuals/2.15.4/users.pdf p.595 oldspaces.append(entry) - return oldspaces class WebNewformSpace(): @@ -328,7 +326,6 @@ def __init__(self, data): self.oldspaces = [(old['sub_level'], old['sub_char_orbit_index'], old['sub_conrey_index'], old['sub_mult']) for old in oldspaces] self.dim_grid = DimGrid.from_db(data) self.plot = db.mf_newspace_portraits.lookup(self.label, projection="portrait") - # Properties self.properties = [('Label',self.label)] if self.plot is not None and self.dim > 0: