Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Lairez
numperiods
Commits
62f0dca5
Commit
62f0dca5
authored
Mar 27, 2019
by
Pierre Lairez
Browse files
Fixes
parent
d094ad9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
quarticdb.py
View file @
62f0dca5
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment