Opened 14 years ago
Closed 14 years ago
#4307 closed defect (fixed)
[with patch, with positive review] bad error message in SupersingularModule constructor
Reported by: | was | Owned by: | craigcitro |
---|---|---|---|
Priority: | minor | Milestone: | sage-3.2 |
Component: | modular forms | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
sage: SupersingularModule(15) Traceback (most recent call last): ... ValueError: order of finite field must be a prime power
The error message should say something like:
NotImplementedError: supersingular module of non-prime level not yet implemented
Attachments (1)
Change History (7)
comment:1 Changed 14 years ago by
- Priority changed from major to minor
comment:2 Changed 14 years ago by
- Summary changed from bad error message in SupersingularModule constructor to [with patch, needs review] bad error message in SupersingularModule constructor
comment:3 Changed 14 years ago by
Alex,
please add doctests that show the new behavior to the not yet existing class SupersingularModule?(hecke.HeckeModule_free_module) docstring.
Cheers,
Michael
Changed 14 years ago by
comment:4 Changed 14 years ago by
Yes. Done, and replaced the patch.
comment:5 Changed 14 years ago by
- Summary changed from [with patch, needs review] bad error message in SupersingularModule constructor to [with patch, with positive review] bad error message in SupersingularModule constructor
Looks good.
comment:6 Changed 14 years ago by
- Resolution set to fixed
- Status changed from new to closed
Merged in Sage 3.2.alpha1
Note: See
TracTickets for help on using
tickets.
Having looked at the code in ssmod.py, it seems to me that any nontrivial functionality is only implemented for level 1 at the moment. Two things that I tried: dimension() and hecke_matrix().
The attached patch raises ValueErrors if the characteristic is not prime or if the level is not coprime to the characteristic, and a NotImplementedError if the level is > 1.
Extending the functionality in ssmod.py to general levels is right up my alley, so I'll look into doing it in the near future. The code could also use more documentation and tests.