-
-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update Cremona's tables for Sage #11587
Comments
comment:1
Updated description to reflect the current status of the tables. |
This comment has been minimized.
This comment has been minimized.
comment:2
Note: only the allgens file format has changed. |
This comment has been minimized.
This comment has been minimized.
comment:3
There are new spkgs at |
Reviewer: John Cremona |
comment:5
I have a few questions. Also since I do not know SQLITE and do not have the time to learn it just for this, the code will need to be reviewed by someone else. There are two spkgs at the link, and one patch on this ticket. Please can you explain how they are related? Is one of the spkgs intended to be part of the standard Sage distribution so that every copy of Sage has the mini-database, as is the case now? And is the other one a replacement for the optional large database? Secondly, you warn that the database takes some time to create. Is this once-only time which you had to spend in creating the database which is part of the spkg, or is it time which must be spent by anyone installing the large optional spkg? To test this, I assume that the following steps are necessary; please correct me if I am wrong.
Lastly: I expect that at regular intervals over the next few months I will be releasing updates to the database (for example, the range 170k=180k is about 70% done already). Please leave rather clear instructions for what to do for future updates; in particular, will it be neceaary to rebuild everything, or just to read in the new files (e.g. *.170000-179999 next time)? |
This comment has been minimized.
This comment has been minimized.
comment:6
Replying to @JohnCremona:
The patch updates sage.databases.cremona to wrap the new SQLite databases. It provides about the same functionality as the old ZODB (there are some slight modifications to actually reflect the documentation, which wasn't respected before -- specifically the mini-database only has data from allcurves).
Correct. The elliptic_curve spkg is included every copy of sage, and includes both the mini-database, as well as a very small database of curves William finds interesting. The database_cremona_ellcurve spkg includes (most of) the data from allcurves, allgens, allbsd, and degphi for every curve that you have listed.
Currently the spkgs simply install pre-built SQL databases, so currently this is a once-only thing. That said, on my home system it only takes ~4mins to create the database from scratch.
Yes, that looks correct. The only thing to be aware of is that #11642 depends on #11640 (which is just a small patch), and that there are optional doctests you should run in step 7.
Currently there is simple script to rebuild everything, but (in theory) it is also possible to simply add the new files. The former:
the later should be (although I haven't tested it):
That said, I've marked myself as the maintainer of the database_cremona_ellcurve spkg, so I'll try to keep it up to date (of course it would help if you let me know when you update your tables of course (: ). |
This comment has been minimized.
This comment has been minimized.
comment:7
I've updated the database_cremona_ellcurve spkg to include the latest tables, which can still be found at http://wstein.org/home/ohanar/cremona-database (the old one is still there there as well). I'm also attaching an updated patch that mainly updates the documentation to reflect the current state of the tables (upper bound of 180,000 vs 130,000), as well as the spkg version. It also limits the outputs of a few queries where only the first entry is needed. |
fixes the broken doctest for cremona_mini |
comment:8
Attachment: trac_11587.patch.gz looks good, works good |
Author: Andrew Ohana |
Changed reviewer from John Cremona to John Cremona, Tom Boothby |
Dependencies: #11642 |
comment:9
That's +1.4 MB, or +78% for the standard spkg. |
Changed keywords from none to elliptic curves ellcurve database |
comment:51
Replying to @nexttime:
Of course -- I just meant that you should do the absolute minimum and not spend effort making the old system more clever. And I just have not had time to fix the patch. |
apply over previous patches |
comment:52
Attachment: trac_11587-fix_speed_regression.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:53
Replying to @loefflerd: Not tested but David's patch looks perfect and I believe his comment. Better if someone else test this as David and I use the same machine. If this is not merged soon it will become out of date since I have currently reached 198800 and expect to release an extension up to 200k within a week! |
comment:54
Everything works as expected. @loefflerd @JohnCremona |
comment:55
Replying to @ohanar:
Many thanks to all. As predicted, the database was updated to go up to 200k a few days ago. |
Merged: sage-4.7.3.alpha0 |
This comment has been minimized.
This comment has been minimized.
comment:58
I just updated the description to reflect the fact that the optional db now goes up to 200k. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:59
Replying to @ohanar:
Not really same location as before, I updated the ticket description. |
Milestone sage-4.7.3 deleted |
Changed merged from sage-4.7.3.alpha0 to sage-4.8.alpha0 |
comment:62
I've posted an updated spkg based on Cremona's update to 210000 (http://wstein.org/home/ohanar/cremona-database/database_cremona_ellcurve-20111121.spkg). I noticed that I never put in a way to install the old spkg for old copies of sage, so I added a recursive |
comment:63
Replying to @ohanar:
Please make a new ticket for making this an optional spkg (this ticket is closed). |
comment:64
Replying to @jdemeyer:
Sure, my only reason for posting it in this ticket was due to the unaddressed issue of dealing with old copies of Sage. |
comment:65
Doing a full test after installing the new optional database (onto 4.8.alpha4) I find one doctest failure in devel/sage/doc/en/bordeaux_2008/elliptic_curves.rst:
since that curve is now in the database and the listed generators are different. I suggest instead
Should the ticket be reopened -- this is not an issue in testing without the optional db installed? |
comment:66
Replying to @JohnCremona:
See #12184 |
John Cremona tells me that: "All data for elliptic curves of conductors from 130k to 200k is at
http://www.warwick.ac.uk/staff/J.E.Cremona/ftp/data/ and also as a tar
file at http://www.warwick.ac.uk/staff/J.E.Cremona/ftp/ecdata-2011-10-26.tgz
-- not to mention at http://code.google.com/p/ecdata/ !"
The goal of this ticket is to:
(1) Create a new drop-in-replacement sqlite database that has the data up to level 10000, which will be included standard with Sage.
(2) Create a new sqlite database that has the data up to level 200000, which will be an optional spkg.
This is complicated because the current packages in Sage use ZODB. Also, Cremona's database format has changed somewhat.
There is now a patch that depends upon #11642 (which depends upon #11640).
You can find updated elliptic_curve and database_cremona_ellcurve spkgs at http://wstein.org/home/ohanar/cremona-database/.
New spkg: http://sage.math.washington.edu/home/leif/Sage/spkgs/elliptic_curves-0.3.spkg
Apply attachment: trac_11587.patch to the Sage library.
Apply attachment: trac_11587-docfixes.patch to the Sage library.
Apply attachment: trac_11587-rmhardcode.proper.patch to the Sage library.
Apply attachment: trac_11587-fix_speed_regression.patch to the Sage library.
Apply attachment: trac_11587-depfix.patch to Sage root.
Optional spkg: http://wstein.org/home/ohanar/cremona-database/database_cremona_ellcurve-20111029.spkg
Depends on #11642
CC: @loefflerd
Component: elliptic curves
Keywords: elliptic curves ellcurve database
Author: R. Andrew Ohana
Reviewer: John Cremona, Tom Boothby
Merged: sage-4.8.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/11587
The text was updated successfully, but these errors were encountered: