You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few of the doctests in ell_rational_field.py fail when the optional package database_cremona_ellcurve-20071019 is installed, mainly because for curves in the database the gens() as supplied by the database may differ from those computed on the fly. (In almost all cases the generators are not uniquely determined, being the generators of a finitely-generated abelian group. We have put some thought into how to make the generators canonical but have not yet succeeded.)
I ran the tests on 3.0.6 before and after installing the database, without applying the patch, and both tests passed everything. So... is this really necessary?
But I still think this looks good and should be applied, since it addresses some ambiguity that could be annoying.
The point is that there was randomness in the old doctests: whenever they use E.gens() where E is an elliptic curve we cannot guarantee that the same gens are computed (on different systems, etc). As a special case of this ambiguity, the gens obtained from the database (which don't change! -- or at least ont very rarely, e.g. if they are found to be wrong) may not agree with computed gens.
I dealt with this by either inserting "# random", or by using explicit points instead of gens().
I hope that with this explanation you can give this (admittedly rather trivial) patch a positive review.
A few of the doctests in
ell_rational_field.py
fail when the optional package database_cremona_ellcurve-20071019 is installed, mainly because for curves in the database the gens() as supplied by the database may differ from those computed on the fly. (In almost all cases the generators are not uniquely determined, being the generators of a finitely-generated abelian group. We have put some thought into how to make the generators canonical but have not yet succeeded.)Component: algebraic geometry
Issue created by migration from https://trac.sagemath.org/ticket/3793
The text was updated successfully, but these errors were encountered: