Skip to content

Commit

Permalink
Allow optional elliptic curve data from database_cremona_ellcurve
Browse files Browse the repository at this point in the history
If the optional db in istalled, then extra data is passed to the
elliptic curve constructor. Recently unexpected keyword arguments were
changed to an exception, without taking the optional package into
account.

Caused by sagemath#38361
  • Loading branch information
vbraun committed Nov 3, 2024
1 parent 1b3f398 commit e7327ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/schemes/elliptic_curves/ell_rational_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ def __init__(self, ainvs, **kwds):
self.__regulator = (kwds.pop('regulator'), True)
if 'torsion_order' in kwds:
self._set_torsion_order(kwds.pop('torsion_order'))
if 'db_extra' in kwds:
# optional data provided by database_cremona_ellcurve
self.db_extra = kwds.pop('db_extra')
if kwds:
raise TypeError(f"unexpected keyword arguments: {kwds}")

Expand Down

0 comments on commit e7327ec

Please sign in to comment.