Commit 62f0dca5 authored by Pierre Lairez's avatar Pierre Lairez
Browse files

Fixes

parent d094ad9e
......@@ -505,9 +505,10 @@ class CurveCountComputation(Computation):
if pic is None:
return False
pic.precompute_smooth_rational_curves(5)
maxdeg = 3
pic.precompute_smooth_rational_curves(maxdeg)
self.qdb[key + '/p1count'] = {k: len(pic.smooth_rational_curves(k)) for k in range(1, 6)}
self.qdb[key + '/p1count'] = {k: len(pic.smooth_rational_curves(k)) for k in range(1, maxdeg+1)}
return True
......@@ -527,7 +528,7 @@ def cmd_curvecount(args):
cnt += 1
try:
with QDB.cursor(q, write=True) as c:
doit = not 'p1count' in c
doit = not 'p1count' in c and not 'p1count-processing' in c
if doit:
c['p1count-processing'] = True
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment