Ticket #1124 (closed defect: fixed)
[with patch] ModularSymbol.complement crashes on full subspaces
| Reported by: | syazdani | Owned by: | was |
|---|---|---|---|
| Priority: | major | Milestone: | sage-2.8.13 |
| Component: | modular forms | Keywords: | zero_subspace |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
Here is a bug in modular symbols code:
sage: M=ModularSymbols(11,2,1)
sage: M.complement()
---------------------------------------------------------------------------
<type 'exceptions.AttributeError'> Traceback (most recent call last)
/net/mathserv/1/home/syazdani/research/programs/<ipython console> in <module>()
/home/syazdani/sage/local/lib/python2.5/site-packages/sage/modular/hecke/ambient_module.py in complement(self)
96 Return the largest Hecke-stable complement of this space.
97 """
---> 98 return self.zero_subspace()
99
100 def decomposition_matrix(self):
<type 'exceptions.AttributeError'>: 'ModularSymbolsAmbient_wt2_g0' object has no attribute 'zero_subspace'
The problem is that zero_subspace is not implemented. Although zero_submodule is. One possible fix is to change self.zero_subspace to self.zero_submodule(). That's the included patch.
Attachments
Change History
Changed 6 years ago by syazdani
-
attachment
zero_submodule
added
comment:2 Changed 6 years ago by mabshoff
- Summary changed from ModularSymbol.complement crashes on full subspaces to [with patch] ModularSymbol.complement crashes on full subspaces
- Milestone set to sage-2.9
Note: See
TracTickets for help on using
tickets.

trivial patch