#12565: E = EllipticCurve('10a1') gives a stupid traceback (rather than a smart
one)
-------------------------------+--------------------------------------------
Reporter: was | Owner: cremona
Type: defect | Status: new
Priority: trivial | Milestone: sage-5.0
Component: elliptic curves | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-------------------------------+--------------------------------------------
Comment(by rohana):
Replying to [comment:1 cremona]:
> I wonder if this came in with the new database implementation.
Yup, with 4.7.2 (pre database change)
{{{
sage: EllipticCurve('10a1')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call
last)
/home/ohanar/sage-
dev/sage-4.7.2-sage.math.washington.edu-x86_64-Linux/<ipython console> in
<module>()
/home/ohanar/sage-
dev/sage-4.7.2-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6
/site-packages/sage/schemes/elliptic_curves/constructor.pyc in
EllipticCurve(x, y, j)
293
294 if isinstance(x, str):
--> 295 return ell_rational_field.EllipticCurve_rational_field(x)
296
297 if rings.is_RingElement(x) and y is None:
/home/ohanar/sage-
dev/sage-4.7.2-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6
/site-packages/sage/schemes/elliptic_curves/ell_rational_field.pyc in
__init__(self, ainvs, extra)
196 if isinstance(ainvs, str):
197 label = ainvs
--> 198 X = sage.databases.cremona.CremonaDatabase()[label]
199 EllipticCurve_number_field.__init__(self, Q,
list(X.a_invariants()))
200 self.__np = {}
/home/ohanar/sage-
dev/sage-4.7.2-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6
/site-packages/sage/databases/cremona.pyc in __getitem__(self, N)
453 return
sage.databases.db.Database.__getitem__(self, N)
454 else:
--> 455 return self.elliptic_curve(N)
456 try:
457 N = int(N)
/home/ohanar/sage-
dev/sage-4.7.2-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6
/site-packages/sage/databases/cremona.pyc in elliptic_curve(self, label)
693 else:
694 message = "There is no elliptic curve with label
"+label+" in the currently available databases"
--> 695 raise RuntimeError, message
696
697 F = elliptic.EllipticCurve(e[0])
RuntimeError: There is no elliptic curve with label 10a1 in the database
(note: use lower case letters!)
}}}
I'll go see about fixing this now.
For the other bug, that looks like it might not be specific to the cremona
database.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12565#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.