@@ -68,6 +68,7 @@ def __init__(self, name="cremona"):
68
68
from sage .env import CREMONA_MINI_DATA_DIR , CREMONA_LARGE_DATA_DIR
69
69
CREMONA_DATA_DIRS = set ([CREMONA_MINI_DATA_DIR , CREMONA_LARGE_DATA_DIR ])
70
70
CREMONA_DATA_DIRS .discard (None )
71
+ search_path = CREMONA_DATA_DIRS or sage_data_path ("cremona" )
71
72
72
73
spkg = "database_cremona_ellcurve"
73
74
spkg_type = "optional"
@@ -77,7 +78,7 @@ def __init__(self, name="cremona"):
77
78
78
79
StaticFile .__init__ (self , f"database_{ name } _ellcurve" ,
79
80
filename = f"{ name } .db" ,
80
- search_path = CREMONA_DATA_DIRS ,
81
+ search_path = search_path ,
81
82
spkg = spkg ,
82
83
type = spkg_type ,
83
84
url = "https://github.com/JohnCremona/ecdata" ,
@@ -104,9 +105,11 @@ def __init__(self):
104
105
True
105
106
"""
106
107
from sage .env import ELLCURVE_DATA_DIR
108
+ search_path = ELLCURVE_DATA_DIR or sage_data_path ("ellcurves" )
109
+
107
110
StaticFile .__init__ (self , "database_ellcurves" ,
108
111
filename = 'rank0' ,
109
- search_path = ELLCURVE_DATA_DIR ,
112
+ search_path = search_path ,
110
113
spkg = "elliptic_curves" ,
111
114
type = "standard" ,
112
115
description = "William Stein's database of interesting curve" )
@@ -132,9 +135,11 @@ def __init__(self):
132
135
True
133
136
"""
134
137
from sage .env import GRAPHS_DATA_DIR
138
+ search_path = GRAPHS_DATA_DIR or sage_data_path ("graphs" )
139
+
135
140
StaticFile .__init__ (self , "database_graphs" ,
136
141
filename = 'graphs.db' ,
137
- search_path = GRAPHS_DATA_DIR ,
142
+ search_path = search_path ,
138
143
spkg = "graphs" ,
139
144
type = "standard" ,
140
145
description = "A database of graphs" )
@@ -160,7 +165,8 @@ def __init__(self):
160
165
True
161
166
"""
162
167
StaticFile .__init__ (self , "database_jones_numfield" ,
163
- filename = 'jones/jones.sobj' ,
168
+ filename = 'jones.sobj' ,
169
+ search_path = sage_data_path ("jones" ),
164
170
spkg = "database_jones_numfield" ,
165
171
description = "John Jones's tables of number fields" )
166
172
@@ -244,14 +250,15 @@ def __init__(self, name='polytopes_db'):
244
250
'Hodge4d'
245
251
"""
246
252
from sage .env import POLYTOPE_DATA_DIR
253
+ search_path = POLYTOPE_DATA_DIR or sage_data_path ("reflexive_polytopes" )
247
254
248
255
dirname = "Full3d"
249
256
if name == "polytopes_db_4d" :
250
257
dirname = "Hodge4d"
251
258
252
259
StaticFile .__init__ (self , name ,
253
260
filename = dirname ,
254
- search_path = POLYTOPE_DATA_DIR )
261
+ search_path = search_path )
255
262
256
263
257
264
def all_features ():
0 commit comments