I'm sure this will have an instant simple answer.

I have added a member function (method) called automorphisms(self) to
an existing Sage class.  Namely, to the class  EllipticCurve_generic
-- by inserting code into /sage/schemes/elliptic_curves/ell_generic.py

I then do
  sage -br
and all seems well.

But when I run Sage and create an instance of the class, it cannot see
the new method:

sage: E=EllipticCurve(0);E
Elliptic Curve defined by y^2  = x^3 +1 over Rational Field
sage: E.automorphisms()
---------------------------------------------------------------------------
<type 'exceptions.AttributeError'>        Traceback (most recent call last)

/home/jec/sage/<ipython console> in <module>()

<type 'exceptions.AttributeError'>: 'EllipticCurve_rational_field'
object has no attribute 'automorphisms'

I'm sure that the code for automorphisms() is in the correct scope in the file.

Help!

John Cremona

PS While I'm here, is there a way of doing "sage -br" without quitting
Sage -- and losing all the variables etc that one has been testing
with?

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to