Skip to content

Commit e7327ec

Browse files
committedNov 3, 2024
Allow optional elliptic curve data from database_cremona_ellcurve
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 #38361
1 parent 1b3f398 commit e7327ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/sage/schemes/elliptic_curves/ell_rational_field.py

+3
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ def __init__(self, ainvs, **kwds):
203203
self.__regulator = (kwds.pop('regulator'), True)
204204
if 'torsion_order' in kwds:
205205
self._set_torsion_order(kwds.pop('torsion_order'))
206+
if 'db_extra' in kwds:
207+
# optional data provided by database_cremona_ellcurve
208+
self.db_extra = kwds.pop('db_extra')
206209
if kwds:
207210
raise TypeError(f"unexpected keyword arguments: {kwds}")
208211

0 commit comments

Comments
 (0)