Skip to content

Commit

Permalink
Merge pull request #6321 from wwylele/main
Browse files Browse the repository at this point in the history
Exclude self newspace from oldspace decomposition
  • Loading branch information
AndrewVSutherland authored Jan 31, 2025
2 parents 53a3d66 + 39afb1b commit 98038fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CONTRIBUTORS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -443,4 +443,6 @@ affil: The University of North Carolina Greensboro
name: David Yuen
affil: Lake Forest College
url: https://www.lakeforest.edu/academics/faculty/yuen/

---
name: Weiyi Wang
email: [email protected]
6 changes: 6 additions & 0 deletions lmfdb/classical_modular_forms/test_cmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ def test_decomposition(self):
assert elt + '.a' in page.get_data(as_text=True)
for elt in ['Decomposition', r"S_{9}^{\mathrm{old}}(\Gamma_1(38))", "lower level spaces"]:
assert elt in page.get_data(as_text=True)
decomposition = r"""
<div class="center">
\( S_{9}^{\mathrm{old}}(\Gamma_1(38)) \cong \) <a href=/ModularForm/GL2/Q/holomorphic/1/9/>\(S_{9}^{\mathrm{new}}(\Gamma_1(1))\)</a>\(^{\oplus 4}\)\(\oplus\)<a href=/ModularForm/GL2/Q/holomorphic/2/9/>\(S_{9}^{\mathrm{new}}(\Gamma_1(2))\)</a>\(^{\oplus 2}\)\(\oplus\)<a href=/ModularForm/GL2/Q/holomorphic/19/9/>\(S_{9}^{\mathrm{new}}(\Gamma_1(19))\)</a>\(^{\oplus 2}\)
</div>
"""
assert decomposition in page.get_data(as_text=True)

def test_convert_conreylabels(self):
for c in [27, 31]:
Expand Down
2 changes: 1 addition & 1 deletion lmfdb/classical_modular_forms/web_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def __init__(self, level, weight):
self.has_trace_form = (data.get('traces') is not None)
# By default we sort on char_orbit_index
newspaces = list(db.mf_newspaces.search({'level':level, 'weight':weight, 'char_parity': self.weight_parity}))
self.oldspaces = [(sublevel, number_of_divisors(level/sublevel)) for sublevel in divisors(level)]
self.oldspaces = [(sublevel, number_of_divisors(level/sublevel)) for sublevel in divisors(level) if sublevel != level]
self.oldspaces.sort()
self.dim_grid = DimGrid.from_db(data)
self.decomp = []
Expand Down

0 comments on commit 98038fc

Please sign in to comment.