Skip to content

Commit 1e50408

Browse files
committed
script updates
1 parent 33e0680 commit 1e50408

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

scripts/ec_utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ def map_points(maps, Plist, verbose=0):
146146
break
147147
for j in range(1, ncurves):
148148
if (maps[i][j] != 0) and Qlists[j] == []:
149+
if verbose>1:
150+
print("Mapping points from curve {} to curve {} via {}".format(i,j,maps[i][j]))
151+
print("points to be mapped: {}".format(Qlists[i]))
149152
Qlists[j] = [maps[i][j](P) for P in Qlists[i]]
150153
nfill += 1
151154
# now we saturate the points just computed at all primes up to maxp

scripts/ecdb.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,17 @@ def make_datafiles(infilename, mode='w', verbose=False, prefix="t"):
8989
reglist = [1 for F in Elist]
9090
else:
9191
Plist = get_gens(E, r, verbose)
92-
genlist = map_points(maps, Plist)
92+
# Saturate these points
9393
prec0 = mwrank_get_precision()
9494
mwrank_set_precision(mwrank_saturation_precision)
9595
if verbose:
96-
print("genlist (before saturation) = {}".format(genlist))
97-
genlist = [Elist[i].saturation(genlist[i], max_prime=mwrank_saturation_maxprime)[0] for i in range(ncurves)]
96+
print("gens (before saturation) = {}".format(Plist))
97+
Plist, ind, _ = Elist[0].saturation(Plist, max_prime=-1)
98+
if verbose:
99+
print("gens (after saturation) = {}".format(Plist))
100+
if ind>1:
101+
print("index gain {}".format(ind))
102+
genlist = map_points(maps, Plist)
98103
if verbose:
99104
print("genlist (before reduction) = {}".format(genlist))
100105
genlist = [Elist[i].lll_reduce(genlist[i])[0] for i in range(ncurves)]

0 commit comments

Comments
 (0)