1 | initial version |
Thank you! I've found a solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
2 | No.2 Revision |
Thank you! I've found a solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system. But by default, Sage wanted to load the large one, right?
3 | No.3 Revision |
Thank you! I've found a solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system. system (same ls
output as yours). But by default, Sage wanted to load the large one, right?
4 | No.4 Revision |
Thank you! I've found a solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right?
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
5 | No.5 Revision |
Thank you! I've found a (partial) solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right?
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
6 | No.6 Revision |
Thank you! I've found a (partial) solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right?
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
7 | No.7 Revision |
Thank you! I've found a (partial) solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But this contradict this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
Running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the package, I assume.
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
8 | No.8 Revision |
Thank you! I've found a (partial) solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But this contradict that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
Running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the package, I assume.
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
9 | No.9 Revision |
Thank you! I've found a (partial) solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
Running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the package, I assume.assume. Either the doc description or the code at those lines or the Boolean must be wrong. They don't fit together.
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
10 | No.10 Revision |
Thank you! I've found a (partial) solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
Running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the package, I assume. Either the doc description or the code at those lines or the Boolean must be wrong. They don't fit together.together. I think, the problem is the Boolean output value.
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
11 | No.11 Revision |
Thank you! I've found a (partial) solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
Running So far, the code fits with the doc description above, but running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the package, I assume. Either the doc description or the code at those lines or the Boolean must be wrong. They don't fit together. I think, the problem is the Boolean output value.
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
12 | No.12 Revision |
Thank you! I've found a (partial) solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
So far, the code fits with the doc description above, but running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the Boolean output value.value because it refers to the large database, I think. That would be logical.
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
13 | No.13 Revision |
Thank you! I've found a (partial) solution. One must set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
So far, the code fits with the doc description above, but running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the Boolean output value because it refers to the large database, I think. That would be logical.logical. But either I don't have the large one installed on my system, or if so, then it is in a wrong directory.
However, this method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
14 | No.14 Revision |
Thank you! I've found a (partial) partial solution which is more a bypass than a solution. One must can set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
So far, the code fits with the doc description above, but running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the Boolean output value because it refers to the large database, I think. That would be logical. But either I don't have the large one installed on my system, or if so, then it is in a wrong directory.
However, this my bypass method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
15 | No.15 Revision |
For update, see below
Thank you! I've found a partial solution which is more a bypass than a solution. One can set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
So far, the code fits with the doc description above, but running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the Boolean output value because it refers to the large database, I think. That would be logical. But either I don't have the large one installed on my system, or if so, then it is in a wrong directory.
However, my bypass method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
Update:
I know what the real problem is. That's not a problem with the Cremona database, but with this Boolean output which is always True
.
sage: is_package_installed('abc')
True
sage: is_package_installed('abwadwe')
True
sage: is_package_installed('abwadweafer')
True
16 | No.16 Revision |
For update, update see below
Thank you! I've found a partial solution which is more a bypass than a solution. One can set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
So far, the code fits with the doc description above, but running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the Boolean output value because it refers to the large database, I think. That would be logical. But either I don't have the large one installed on my system, or if so, then it is in a wrong directory.
However, my bypass method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
Update:
I know what the real problem is. That's not a problem with the Cremona database, but with this Boolean output which is always True
.
sage: is_package_installed('abc')
True
sage: is_package_installed('abwadwe')
True
sage: is_package_installed('abwadweafer')
True
17 | No.17 Revision |
For update see below
Thank you! I've found a partial solution which is more a bypass than a solution. One can set the mini database manually.
sage: CremonaDatabase?
Signature: CremonaDatabase(name=None, mini=None, set_global=None)
Docstring:
Initializes the Cremona database with name "name". If "name" is
"None" it instead initializes large Cremona database (named
‘cremona’), if available or default mini Cremona database (named
‘cremona mini’).
If the Cremona database in question is in the format of the mini
database, you must set "mini=True", otherwise it must be set to
"False".
If you would like other components of Sage to use this database,
mark "set_global=True".
Init docstring: x.__init__(…) initializes x; see help(type(x)) for signature
File: /usr/lib/python2.7/site-packages/sage/databases/cremona.py
Type: function
Then I did this and it has been working since then:
sage: CremonaDatabase(name='cremona mini',set_global=True)
Cremona's database of elliptic curves with conductor at most 9999
sage: EllipticCurve("37b2")
Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field
It seems that only the mini database is installed on my system (same ls
output as yours). But by default, Sage wanted to load the large one, right? But that contradicts this sentence:
If name is None it instead initializes large Cremona database (named ‘cremona’), if available or default mini Cremona database (named ‘cremona mini’).
The code at lines 1675–1679 of the file cremona.py is the following:
if set_global and name is None:
if is_package_installed('database_cremona_ellcurve'):
name = 'cremona'
else:
name = 'cremona mini'
So far, the code fits with the doc description above, but running is_package_installed('database_cremona_ellcurve')
results in True
. Something must be wrong with the Boolean output value because it refers to the large database, I think. That would be logical. But either I don't have the large one installed on my system, or if so, then it is in a wrong directory.
However, my bypass method only works as long as I don't exit the Sage terminal. Each time I exit and log in again, I have to perform these steps again.
Update:
I know what the real problem is. That's not a problem with the Cremona database, but with this Boolean output which is always True
.
sage: is_package_installed('abc')
True
sage: is_package_installed('abwadwe')
True
sage: is_package_installed('abwadweafer')
True
Could anyone with Arch please test this Boolean variable?